From 295d2445176146a2e1e874abdabe2381998cc9f8 Mon Sep 17 00:00:00 2001 From: Stefano Marinelli Date: Sun, 22 Oct 2023 08:38:07 +0200 Subject: [PATCH] Removed line that could print an error when ctrl+c was hit: a leftover of the global db handler --- NotiMail.py | 1 - 1 file changed, 1 deletion(-) diff --git a/NotiMail.py b/NotiMail.py index 0e8a7d8..062397e 100644 --- a/NotiMail.py +++ b/NotiMail.py @@ -350,7 +350,6 @@ def shutdown_handler(signum, frame): handler.mail.logout() except: pass - db_handler.close() # Use the global db_handler print("Cleanup complete. Exiting.") logging.info(f"Cleanup complete. Exiting.") sys.exit(0)