From 538f083eef7b7c120b119054fc27fdffc4decd03 Mon Sep 17 00:00:00 2001 From: Miguel Barao Date: Fri, 11 Mar 2016 12:59:21 +0000 Subject: [PATCH] - changed messages from serve.py to avoid UnicodeEncoreError --- serve.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/serve.py b/serve.py index f65d005..fa8364e 100755 --- a/serve.py +++ b/serve.py @@ -177,10 +177,11 @@ if __name__ == '__main__': testconf = test.read_configuration(arg.testfile[0], debug=arg.debug, show_points=arg.show_points, show_hints=arg.show_hints, save_answers=arg.save_answers, practice=arg.practice, show_ref=arg.show_ref) print('=' * 79) - print('- Title: %s' % testconf['title']) - print('- Database: %s' % testconf['database']) - print('- Questions:\n ', '\n '.join(testconf['files'])) - print(' (%i questions read)' % len(testconf['questions'])) + # print('- Title: %s' % testconf['title']) # FIXME problems with UnicodeEncodeError + print('- Database: %s' % testconf['database']) + print('- Loaded %i questions from:' % len(testconf['questions'])) + print(' path: %s' % testconf['questions_dir']) + print(' files: %s' % ', '.join(testconf['files'])) print('-' * 79) print('- Starting server...') -- libgit2 0.21.2