Skip to content

Commit b57d9be

Browse files
authored
Merge branch 'cg-validate-worksheets' of https://github.com/gwincr11/nbformat into cg-validate-worksheets
2 parents f57546d + 41c0a7f commit b57d9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbformat/v3/rwbase.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def restore_bytes(nb):
2525
if "jpeg" in output:
2626
output.jpeg = output.jpeg.encode("ascii", "replace")
2727
except KeyError as e:
28-
validator.ValidationError(f"The notebook was invalid missing the key: {e.message}")
28+
raise validator.ValidationError(f"The notebook was invalid missing the key: {e.message}")
2929
return nb
3030

3131
# output keys that are likely to have multiline values

0 commit comments

Comments
 (0)