News for hackers. Stuff that matters.
Re:Postmodern Error Handling in Python 3.6 by rgacote on Saturday February 25, 2017 @09:37AM (#13731742)
Where 'in your code' is a module. Then log the exception and raise a new exception with a module-specific code. requests.exceptions.RequestException is a good example.

My modules do catch SystemExit and KeyboardInterrupt before the bare exception and simply re-raise those.

There are no comments on this comment yet.