From 3fab69ce0679913716bfe05954ac148bd3462156 Mon Sep 17 00:00:00 2001 From: Andrew Bolyachevets Date: Fri, 18 Oct 2024 14:27:25 -0700 Subject: [PATCH] fix stacktrace logging (#3084) --- .../account-mailer/src/account_mailer/resources/worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queue_services/account-mailer/src/account_mailer/resources/worker.py b/queue_services/account-mailer/src/account_mailer/resources/worker.py index f838424cfc..15b8eba921 100644 --- a/queue_services/account-mailer/src/account_mailer/resources/worker.py +++ b/queue_services/account-mailer/src/account_mailer/resources/worker.py @@ -74,8 +74,8 @@ def worker(): # Note if you're extending above, make sure to include the new type in handle_other_messages below. handle_other_messages(message_type, email_msg) - except Exception: # NOQA # pylint: disable=broad-except - logger.error('Error processing event:', exc_info=True) + except Exception as e: # NOQA # pylint: disable=broad-except + raise e return {}, HTTPStatus.OK