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))