Skip to content

Commit

Permalink
simplify a raise
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels committed Jul 8, 2024
1 parent 629b5af commit 05c36a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/clients/sms/aws_pinpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 05c36a4

Please sign in to comment.