summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom <tom@ritter.vg>2016-09-14 12:01:34 -0500
committerTom <tom@ritter.vg>2016-09-14 12:01:34 -0500
commit148cb0c5ab5e1eb94091e18110fbaad7c572660c (patch)
treecef6538de9c8286eba74ec203c7945167ed8f454
parenta90d07cfb3923a38edcb3fc1f8b61ad750f72a9b (diff)
Log exceptions during run.
-rwxr-xr-xmain.py3
1 files changed, 2 insertions, 1 deletions
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()