From 05c36a43133a1963693723785f33566ffe492937 Mon Sep 17 00:00:00 2001 From: Stephen Astels Date: Mon, 8 Jul 2024 14:07:09 -0400 Subject: [PATCH] simplify a raise --- app/clients/sms/aws_pinpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/clients/sms/aws_pinpoint.py b/app/clients/sms/aws_pinpoint.py index a06226af03..1ce3255d5c 100644 --- a/app/clients/sms/aws_pinpoint.py +++ b/app/clients/sms/aws_pinpoint.py @@ -55,7 +55,7 @@ def send_sms(self, to, content, reference, multi=True, sender=None, template_id= except Exception as e: self.statsd_client.incr("clients.pinpoint.error") - raise Exception(e) + raise e finally: elapsed_time = monotonic() - start_time self.current_app.logger.info("AWS Pinpoint request finished in {}".format(elapsed_time))