Skip to content

Commit

Permalink
minor comment rephrasing
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Aug 28, 2023
1 parent 043548c commit 5ecb715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbgrader/preprocessors/instantiatetests.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,14 @@ def _load_test_template_file(self, resources):
self.log.debug(tests)

except FileNotFoundError:
# if there is no tests file, just load a default tests dict
# if there is no tests file, try to load default tests dict
self.log.warning(
'No autotests.yml file found in the assignment directory. Loading the default autotests.yml file in the course root directory')
try:
with open(os.path.join(self.autotest_filename), 'r') as tests_file:
tests = yaml.safe_load(tests_file)
except FileNotFoundError:
# if there is no tests file, just create a default empty tests dict
# if there is not even a default tests file, re-raise the FileNotFound error
self.log.error('No autotests.yml file found, but there were autotest directives found in the notebook. ')
raise
except yaml.parser.ParserError as e:
Expand Down

0 comments on commit 5ecb715

Please sign in to comment.