From 42536befdb550df69dcbbdfc230a8321c16d9404 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Wed, 29 Jan 2020 22:26:30 +0100 Subject: [PATCH] Fix typo in notifications.py --- pyquarantine/notifications.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyquarantine/notifications.py b/pyquarantine/notifications.py index 592ea5d..a93525d 100644 --- a/pyquarantine/notifications.py +++ b/pyquarantine/notifications.py @@ -354,13 +354,13 @@ class EMailNotification(BaseNotification): self.logger.debug("{}: parsing email template".format(queueid)) # decode some headers decoded_headers = {} - for var in ["from", "to", "subject"]: + for header in ["from", "to", "subject"]: if header in headers: decoded_headers[header] = str( make_header(decode_header(headers[header]))) else: - headers[var] = "" - decoded_headers[var] = "" + headers[header] = "" + decoded_headers[header] = "" # generate dict containing all template variables variables = defaultdict(str,