I noticed that exceptions that are handled do not result in a call to sys.excepthook
... which makes sense in retrospect.
But, how do I log or otherwise customize the way that handled exceptions are dealt with? When this code executes...
try:
1/0
except:
pass
I would like to be able to log the fact that a ZeroDivisionError
was handled.
Is there a way to do this?