diff --git a/backend/mail.py b/backend/mail.py index dfc9f8c283a4d40370467dfc36104ae5c4311080..524623da8ddb91ad46910202f035c4e148aa0b5c 100644 --- a/backend/mail.py +++ b/backend/mail.py @@ -13,7 +13,7 @@ class MailHandler(ABC): self.host = host self.port = port self.context = context - + def connect(self, verification: bool) -> int: connection = self.protocol_init(self.host, self.port) if verification: @@ -33,7 +33,7 @@ class MailHandler(ABC): @abstractmethod def protocol_starttls_args(self): raise NotImplementedError() - + @staticmethod def create_handler(protocol: str): if protocol == "smtp": diff --git a/backend/tls_utils.py b/backend/tls_utils.py index 86e7fb7b478b7375b725f0b63d96bd275b057dcf..ba6805fbb1c652247a79b75608d69be73fac590f 100644 --- a/backend/tls_utils.py +++ b/backend/tls_utils.py @@ -19,7 +19,7 @@ class TLSDetails: self.expires_in_days = expires_in_days self.error_message = error_message self.connection_error = connection_error - + def print(self, console: Console): if self.connection_error: console.log("[orange bold underline]" + self.domain_name, self.error_message, style="orange")