Skip to content

Commit

Permalink
Update nbstripout/_nbstripout.py
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Rathgeber <[email protected]>
  • Loading branch information
jspaezp and kynan committed Mar 18, 2024
1 parent 5eb68f0 commit 9fb0d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbstripout/_nbstripout.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ def main():
try:
with io.open(filename, 'r+', encoding='utf8', newline='') as f:
out = output_stream if args.textconv or args.dry_run else f
any_local_change = process_notebook(f, out, args, extra_keys, filename)
any_change = any_change or any_local_change
if process_notebook(f, out, args, extra_keys, filename):
any_change = True

except nbformat.reader.NotJSONError:
print(f"No valid notebook detected in '{filename}'", file=sys.stderr)
Expand Down

0 comments on commit 9fb0d0f

Please sign in to comment.