From e040bcac7790fe32b83366afbb069c55012fd426 Mon Sep 17 00:00:00 2001 From: Christopher Broderick Date: Wed, 25 Oct 2023 17:15:45 +0100 Subject: [PATCH] Add missing capture of exception to variable. --- helpdesk/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/email.py b/helpdesk/email.py index 212ee31c..a2d1c275 100644 --- a/helpdesk/email.py +++ b/helpdesk/email.py @@ -102,7 +102,7 @@ def process_email(quiet: bool = False, debug_to_stdout: bool = False): logger.info(log_msg) if debug_to_stdout: print(log_msg) - except Exception: + except Exception as e: logger.error("Queue processing failed: {q.slug} -- {e}", exc_info=True) if debug_to_stdout: print(f"Queue processing failed: {q.slug}")