Skip to content

Commit

Permalink
remove redundant CliendError catching
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels committed May 6, 2024
1 parent 040a361 commit da4006f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/clients/sms/aws_pinpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ def send_sms(self, to, content, reference, multi=True, sender=None):
MessageType=messageType,
ConfigurationSetName=self.current_app.config["AWS_PINPOINT_CONFIGURATION_SET_NAME"],
)
except ClientError as e:
self.statsd_client.incr("clients.pinpoint.error")
raise Exception(e)
except Exception as e:
self.statsd_client.incr("clients.pinpoint.error")
raise Exception(e)
Expand Down

0 comments on commit da4006f

Please sign in to comment.