Skip to content

Commit

Permalink
Improve exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
miketonks committed Nov 13, 2015
1 parent f9729d2 commit 0d98793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions governor.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def shutdown(signal, frame):

except SystemExit as e:
logging.info("Governor Shutting Down: Exiting Running Loop")
except:
logging.error("Unexpected error: %s" % sys.exc_info()[0])
except Exception as e:
logging.exception("Unexpected error: %s" % e)

finally:
time.sleep(config["loop_wait"])
Expand Down

0 comments on commit 0d98793

Please sign in to comment.