You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title suggests, it would be great if we were able to add the stackprinter styles to only a select exception classes.
I came across this idea while developing a module. I wanted the error messages for my module to be prettier, but I didn't want any other error messages to be affected. If I use stackprinter within my module, I essentially force the user to also have its styles for all other exceptions including the ones within their own program, or at least that's what I experienced while testing.
A way to implement this could be by specifying a list of exception classes to whitelist or blacklist (but never both):