Skip to content

Commit

Permalink
fix custom exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Feb 8, 2024
1 parent de7c645 commit 0b02474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cat_win/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def exception_handler(exception_type: type, exception, traceback,
devnull = os.open(os.devnull, os.O_WRONLY)
os.dup2(devnull, sys.stderr.fileno())
sys.exit(1) # Python exits with error code 1 on EPIPE
except:
except (Exception, KeyboardInterrupt):
debug_hook(exception_type, exception, traceback)


Expand Down

0 comments on commit 0b02474

Please sign in to comment.