mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
code review feedback and merge from main
This commit is contained in:
@@ -41,8 +41,7 @@ class PerformancePlatformClient:
|
||||
current_app.logger.error(
|
||||
"Performance platform update request failed for payload with response details: {} '{}'".format(
|
||||
json.dumps(payload), resp.status_code
|
||||
),
|
||||
exc_info=True,
|
||||
)
|
||||
)
|
||||
resp.raise_for_status()
|
||||
|
||||
|
||||
@@ -80,14 +80,10 @@ class AwsSnsClient(SmsClient):
|
||||
PhoneNumber=to, Message=content, MessageAttributes=attributes
|
||||
)
|
||||
except botocore.exceptions.ClientError as e:
|
||||
self.current_app.logger.error(
|
||||
"An error occurred sending sms", exc_info=True
|
||||
)
|
||||
self.current_app.logger.exception("An error occurred sending sms")
|
||||
raise str(e)
|
||||
except Exception as e:
|
||||
self.current_app.logger.error(
|
||||
"An error occurred sending sms", exc_info=True
|
||||
)
|
||||
self.current_app.logger.exception("An error occurred sending sms")
|
||||
raise str(e)
|
||||
finally:
|
||||
elapsed_time = monotonic() - start_time
|
||||
|
||||
Reference in New Issue
Block a user