From 148cb0c5ab5e1eb94091e18110fbaad7c572660c Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 14 Sep 2016 12:01:34 -0500 Subject: Log exceptions during run. --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 30c285f..461a864 100755 --- a/main.py +++ b/main.py @@ -77,5 +77,6 @@ if __name__ == "__main__": jobManager.mark_jobs_ran() else: jobManager.mark_jobs_ran_with_error() - except: + except Exception as e: + logging.critical("Caught an exception trying to execute jobs:" + str(e)) jobManager.mark_jobs_ran_with_error() -- cgit v1.2.3