From 0169c0650e88ee738c8332f5bd23091516a591b0 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Tue, 22 Oct 2019 20:53:06 +0200 Subject: [PATCH] Fix typo in variable name --- pyquarantine/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyquarantine/notifications.py b/pyquarantine/notifications.py index 9744fcc..b736803 100644 --- a/pyquarantine/notifications.py +++ b/pyquarantine/notifications.py @@ -81,7 +81,7 @@ class EMailNotification(BaseNotification): "u", "ul" ] - good_attributes = [ + _good_attributes = [ "align", "alt", "bgcolor", @@ -268,7 +268,7 @@ class EMailNotification(BaseNotification): # remove not whitelisted attributes for element in soup.find_all(True): for attribute in list(element.attrs.keys()): - if attribute not in EMailNotification.good_attributes: + if attribute not in EMailNotification._good_attributes: if element.name == "a" and attribute == "href": self.logger.debug( "{}: setting attribute href to '#' on tag '{}'".format(