Fix typo in variable name

This commit is contained in:
2019-10-22 20:53:06 +02:00
parent b6deccc2aa
commit 0169c0650e

View File

@@ -81,7 +81,7 @@ class EMailNotification(BaseNotification):
"u", "u",
"ul" "ul"
] ]
good_attributes = [ _good_attributes = [
"align", "align",
"alt", "alt",
"bgcolor", "bgcolor",
@@ -268,7 +268,7 @@ class EMailNotification(BaseNotification):
# remove not whitelisted attributes # remove not whitelisted attributes
for element in soup.find_all(True): for element in soup.find_all(True):
for attribute in list(element.attrs.keys()): 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": if element.name == "a" and attribute == "href":
self.logger.debug( self.logger.debug(
"{}: setting attribute href to '#' on tag '{}'".format( "{}: setting attribute href to '#' on tag '{}'".format(