mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
Add exception message
This commit is contained in:
parent
405a904906
commit
ce824608c0
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ def fix_strings(filename: str) -> int:
|
|||
with open(filename) as f:
|
||||
notebook_contents = json.load(f)
|
||||
except json.JSONDecodeError as exc:
|
||||
print(f'{filename}: Failed to load')
|
||||
print(f'{filename}: Failed to load ({exc})')
|
||||
return 1
|
||||
else:
|
||||
cells = notebook_contents['cells']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue