cknd / stackprinter

Debugging-friendly exceptions for Python
MIT License
1.28k stars 37 forks source link

Ignore certain exceptions in `set_excepthook` #25

Closed tsoernes closed 4 years ago

tsoernes commented 4 years ago

I'd like to make a feature request for passing a list of exceptions to set_excepthook that are either ignored and printed in the standard format or in a minimal style. Useful for KeyboardInterrupt because that's user-triggered and a detailed exception output is often not wanted.

cknd commented 4 years ago

That should totally exist, yes

cknd commented 4 years ago

merged #31

cknd commented 4 years ago

(..and released in https://pypi.org/project/stackprinter/0.2.4 :tada:)