Commit 538f083eef7b7c120b119054fc27fdffc4decd03
1 parent
738e4fa0
Exists in
master
and in
1 other branch
- changed messages from serve.py to avoid UnicodeEncoreError
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
serve.py
... | ... | @@ -177,10 +177,11 @@ if __name__ == '__main__': |
177 | 177 | 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) |
178 | 178 | |
179 | 179 | print('=' * 79) |
180 | - print('- Title: %s' % testconf['title']) | |
181 | - print('- Database: %s' % testconf['database']) | |
182 | - print('- Questions:\n ', '\n '.join(testconf['files'])) | |
183 | - print(' (%i questions read)' % len(testconf['questions'])) | |
180 | + # print('- Title: %s' % testconf['title']) # FIXME problems with UnicodeEncodeError | |
181 | + print('- Database: %s' % testconf['database']) | |
182 | + print('- Loaded %i questions from:' % len(testconf['questions'])) | |
183 | + print(' path: %s' % testconf['questions_dir']) | |
184 | + print(' files: %s' % ', '.join(testconf['files'])) | |
184 | 185 | print('-' * 79) |
185 | 186 | print('- Starting server...') |
186 | 187 | ... | ... |