Skip to content

Commit 41c0a7f

Browse files
authored
Update nbformat/v3/rwbase.py
1 parent 1e8b7ea commit 41c0a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbformat/v3/rwbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def restore_bytes(nb):
2626
if 'jpeg' in output:
2727
output.jpeg = str_to_bytes(output.jpeg, 'ascii')
2828
except KeyError as e:
29-
validator.ValidationError(f"The notebook was invalid missing the key: {e.message}")
29+
raise validator.ValidationError(f"The notebook was invalid missing the key: {e.message}")
3030
return nb
3131

3232
# output keys that are likely to have multiline values

0 commit comments

Comments
 (0)