aboutsummaryrefslogtreecommitdiff
path: root/jobs/JobBase.py
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/JobBase.py')
-rwxr-xr-xjobs/JobBase.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/jobs/JobBase.py b/jobs/JobBase.py
index 330b6a9..e7b3c33 100755
--- a/jobs/JobBase.py
+++ b/jobs/JobBase.py
@@ -49,5 +49,6 @@ def sendEmail(config, subject, body, to=""):
server.sendmail(FROM, to, message)
server.close()
return True
- except:
- return False \ No newline at end of file
+ except Exception as e:
+ logging.critical("Caught an exception trying to send an email:" + str(e))
+ return False