Skip to content

Instantly share code, notes, and snippets.

@theacodes
Created October 7, 2014 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theacodes/3a75b1da2869410b1732 to your computer and use it in GitHub Desktop.
Save theacodes/3a75b1da2869410b1732 to your computer and use it in GitHub Desktop.
Simple top-level exception catch
import logging_config
if __name__ == '__main__':
try:
do_stuff()
except Exception as e:
logging.exception(e)
raise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment