code review feedback and merge from main

This commit is contained in:
Kenneth Kehl
2024-09-11 09:39:18 -07:00
34 changed files with 256 additions and 161 deletions

View File

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

View File

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