Skip to content

Commit c28a52a

Browse files
committed
Change CheckCellMetadata error message to mention possible duplicate ids
1 parent 3c51d4d commit c28a52a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nbgrader/preprocessors/checkcellmetadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def preprocess(self, nb: NotebookNode, resources: Dict) -> Tuple[NotebookNode, D
1313
MetadataValidator().validate_nb(nb)
1414
except ValidationError:
1515
self.log.error(traceback.format_exc())
16-
msg = "Notebook failed to validate; the nbgrader metadata may be corrupted."
16+
msg = "Notebook failed to validate; the nbgrader metadata may be corrupted " \
17+
"or a cell might have been duplicated."
1718
self.log.error(msg)
1819
raise ValidationError(msg)
1920

0 commit comments

Comments
 (0)