Created
October 7, 2014 20:33
-
-
Save theacodes/3a75b1da2869410b1732 to your computer and use it in GitHub Desktop.
Simple top-level exception catch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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