From 1a8b46d940d3a4bc06700d15307191bb10008ea6 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Thu, 28 Jan 2016 10:27:36 -0500 Subject: For getting boolean values I need to coerce the type --- jobs/JobBase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jobs/JobBase.py') 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) -- cgit v1.2.3