diff options
author | Tom Ritter <tom@ritter.vg> | 2016-01-28 10:27:36 -0500 |
---|---|---|
committer | Tom Ritter <tom@ritter.vg> | 2016-01-28 10:27:36 -0500 |
commit | 1a8b46d940d3a4bc06700d15307191bb10008ea6 (patch) | |
tree | 8c4eead80ffc5e945d9625ce15bc50969d100789 /jobs/JobBase.py | |
parent | 1516bb8fe35db2f802519a9c13915d2ddadf174e (diff) |
For getting boolean values I need to coerce the type
Diffstat (limited to 'jobs/JobBase.py')
-rwxr-xr-x | jobs/JobBase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs/JobBase.py b/jobs/JobBase.py index cdb835d..a7f02c9 100755 --- a/jobs/JobBase.py +++ b/jobs/JobBase.py @@ -41,7 +41,7 @@ def sendEmail(config, subject, body, to=""): # Prepare actual message # Avoid gmail threading subject = "[" + config.get('general', 'servername') + "] " + subject + " " - if config.get('email', 'bustgmailthreading'): + if config.getboolean('email', 'bustgmailthreading'): subject += str(random.random()) message = """\From: %s\nTo: %s\nSubject: %s\n\n%s""" \ % (FROM, ", ".join(to), subject, body) |