Skip to content

Commit

Permalink
Ignore BrokenPipeError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 14, 2023
1 parent b425d55 commit 0980e5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codespell_lib/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
if __name__ == "__main__":
try:
sys.exit(_script_main())
except BrokenPipeError:
pass

Check warning on line 9 in codespell_lib/__main__.py

View check run for this annotation

Codecov / codecov/patch

codespell_lib/__main__.py#L9

Added line #L9 was not covered by tests
except KeyboardInterrupt:
pass

0 comments on commit 0980e5f

Please sign in to comment.