From 5ecb715628119759e6dad775ec885f4b8bcbc21b Mon Sep 17 00:00:00 2001 From: Trevor Campbell Date: Mon, 28 Aug 2023 13:25:06 -0700 Subject: [PATCH] minor comment rephrasing --- nbgrader/preprocessors/instantiatetests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nbgrader/preprocessors/instantiatetests.py b/nbgrader/preprocessors/instantiatetests.py index fc02f8422..7cb9a4d05 100644 --- a/nbgrader/preprocessors/instantiatetests.py +++ b/nbgrader/preprocessors/instantiatetests.py @@ -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: