3 ms·
A better way is to implement a logging function, which will be recording unknown exceptions the way you prefer: sending an email, writing to a text file, whatev
by xkxx 10y ago
A better way is to implement a logging function, which will be recording unknown exceptions the way you prefer: sending an email, writing to a text file, whatever. Then you just write:
try:
[...]
except Exception as e:
log(e)
It's not much longer than `except Exception: pass` and you gain more control over your system.