File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -292,14 +292,14 @@ def _load_test_template_file(self, resources):
292
292
self .log .debug (tests )
293
293
294
294
except FileNotFoundError :
295
- # if there is no tests file, just load a default tests dict
295
+ # if there is no tests file, try to load default tests dict
296
296
self .log .warning (
297
297
'No autotests.yml file found in the assignment directory. Loading the default autotests.yml file in the course root directory' )
298
298
try :
299
299
with open (os .path .join (self .autotest_filename ), 'r' ) as tests_file :
300
300
tests = yaml .safe_load (tests_file )
301
301
except FileNotFoundError :
302
- # if there is no tests file, just create a default empty tests dict
302
+ # if there is not even a default tests file, re-raise the FileNotFound error
303
303
self .log .error ('No autotests.yml file found, but there were autotest directives found in the notebook. ' )
304
304
raise
305
305
except yaml .parser .ParserError as e :
You can’t perform that action at this time.
0 commit comments