diff --git a/pyquarantine/notifications.py b/pyquarantine/notifications.py index 638a339..8c5eaf2 100644 --- a/pyquarantine/notifications.py +++ b/pyquarantine/notifications.py @@ -263,7 +263,7 @@ class EMailNotification(BaseNotification): # completly remove bad elements for element in soup(EMailNotification._bad_tags): self.logger.debug( - f"{qid}: removing dangerous tag '{element_name}' and its content") + f"{qid}: removing dangerous tag '{element.name}' and its content") element.extract() # remove not whitelisted elements, but keep their content