mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Make sure error message is logged as part of the exception
This commit is contained in:
@@ -122,7 +122,7 @@ class AwsSesClient(EmailClient):
|
|||||||
|
|
||||||
# http://docs.aws.amazon.com/ses/latest/DeveloperGuide/api-error-codes.html
|
# http://docs.aws.amazon.com/ses/latest/DeveloperGuide/api-error-codes.html
|
||||||
if e.response['Error']['Code'] == 'InvalidParameterValue':
|
if e.response['Error']['Code'] == 'InvalidParameterValue':
|
||||||
raise EmailClientNonRetryableException(str(e))
|
raise EmailClientNonRetryableException(e.response['Error']['Message'])
|
||||||
elif (
|
elif (
|
||||||
e.response['Error']['Code'] == 'Throttling'
|
e.response['Error']['Code'] == 'Throttling'
|
||||||
and e.response['Error']['Message'] == 'Maximum sending rate exceeded.'
|
and e.response['Error']['Message'] == 'Maximum sending rate exceeded.'
|
||||||
|
|||||||
Reference in New Issue
Block a user