diff --git a/backend/generic_handler.py b/backend/generic_handler.py index 1c3fcee7595fd6e37127280980440153ab81b741..3b88eb62302ea3f54f484e1e5a7a2bd508fae33a 100644 --- a/backend/generic_handler.py +++ b/backend/generic_handler.py @@ -14,13 +14,13 @@ class GenericHandler(ABC): @staticmethod def create_handler(protocol: str): - import web, mail + import sslh, mail if protocol == "smtp": return mail.SMTPHandler elif protocol == "imap": return mail.IMAPHandler elif protocol == "ssl" or protocol == "tls" or protocol == "https": - return web.SSLHandler + return sslh.SSLHandler else: raise ValueError("Invalid protocol")