News for hackers. Stuff that matters.
Re:Postmodern Error Handling in Python 3.6 by xkxx on Saturday February 25, 2017 @08:25AM (#13731485)
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.

There are no comments on this comment yet.