Fix typo in notifications.py
This commit is contained in:
@@ -354,13 +354,13 @@ class EMailNotification(BaseNotification):
|
|||||||
self.logger.debug("{}: parsing email template".format(queueid))
|
self.logger.debug("{}: parsing email template".format(queueid))
|
||||||
# decode some headers
|
# decode some headers
|
||||||
decoded_headers = {}
|
decoded_headers = {}
|
||||||
for var in ["from", "to", "subject"]:
|
for header in ["from", "to", "subject"]:
|
||||||
if header in headers:
|
if header in headers:
|
||||||
decoded_headers[header] = str(
|
decoded_headers[header] = str(
|
||||||
make_header(decode_header(headers[header])))
|
make_header(decode_header(headers[header])))
|
||||||
else:
|
else:
|
||||||
headers[var] = ""
|
headers[header] = ""
|
||||||
decoded_headers[var] = ""
|
decoded_headers[header] = ""
|
||||||
|
|
||||||
# generate dict containing all template variables
|
# generate dict containing all template variables
|
||||||
variables = defaultdict(str,
|
variables = defaultdict(str,
|
||||||
|
|||||||
Reference in New Issue
Block a user