Skip to content

Commit 2ceab61

Browse files
minor comment rephrasing
1 parent e8c3d7e commit 2ceab61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbgrader/preprocessors/instantiatetests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,14 @@ def _load_test_template_file(self, resources):
292292
self.log.debug(tests)
293293

294294
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
296296
self.log.warning(
297297
'No autotests.yml file found in the assignment directory. Loading the default autotests.yml file in the course root directory')
298298
try:
299299
with open(os.path.join(self.autotest_filename), 'r') as tests_file:
300300
tests = yaml.safe_load(tests_file)
301301
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
303303
self.log.error('No autotests.yml file found, but there were autotest directives found in the notebook. ')
304304
raise
305305
except yaml.parser.ParserError as e:

0 commit comments

Comments
 (0)