From 0ab8cc0f4164aa183fd990dd72f63e767ac1a92a Mon Sep 17 00:00:00 2001 From: Christopher McAvaney Date: Thu, 8 May 2025 14:36:51 +1000 Subject: [PATCH] no need to re-import smtplib This causes a variable scoping issue breaks the SMTP function if imported --- backend/app.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index 3133962..2f9be3f 100644 --- a/backend/app.py +++ b/backend/app.py @@ -2707,7 +2707,6 @@ def send_expiration_notifications(manual_trigger=False): try: # Use SMTP_SSL for port 465, regular SMTP for other ports if smtp_port == 465: - import smtplib logger.info(f"Using SMTP_SSL connection for port 465") server = smtplib.SMTP_SSL(smtp_host, smtp_port) else: