Commit 6cbdd81d4c44477911db3e5548a0368e552bbbef

Authored by Miguel Barao
1 parent 1896ddb2
Exists in master and in 1 other branch dev

- better warning for answers_dir

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
@@ -47,7 +47,7 @@ def read_configuration(filename, debug=False, show_points=False, show_hints=Fals @@ -47,7 +47,7 @@ def read_configuration(filename, debug=False, show_points=False, show_hints=Fals
47 47
48 # where to put the students answers (optional) 48 # where to put the students answers (optional)
49 if 'answers_dir' not in test: 49 if 'answers_dir' not in test:
50 - print('[ WARNG ] Missing "answers_dir" in the test configuration file "{0}".\n Saving answers is disabled'.format(filename)) 50 + print('[ WARNG ] Missing "answers_dir" in the test configuration file "{0}".\n Tests are NOT being saved. Grades are still being inserted into the database.'.format(filename))
51 test['save_answers'] = False 51 test['save_answers'] = False
52 else: 52 else:
53 test['answers_dir'] = os.path.normpath(os.path.expanduser(str(test['answers_dir']))) 53 test['answers_dir'] = os.path.normpath(os.path.expanduser(str(test['answers_dir'])))