mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-13 16:52:23 -05:00
more flake 8
This commit is contained in:
@@ -113,7 +113,7 @@ def process_ses_results(self, response):
|
|||||||
except Retry:
|
except Retry:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
except Exception as e:
|
except Exception:
|
||||||
current_app.logger.exception("Error processing SES results", exc_info=True)
|
current_app.logger.exception("Error processing SES results", exc_info=True)
|
||||||
self.retry(queue=QueueNames.RETRY)
|
self.retry(queue=QueueNames.RETRY)
|
||||||
|
|
||||||
@@ -204,9 +204,9 @@ def handle_complaint(ses_message):
|
|||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
reference = ses_message["mail"]["messageId"]
|
reference = ses_message["mail"]["messageId"]
|
||||||
except KeyError as e:
|
except KeyError:
|
||||||
current_app.logger.exception(
|
current_app.logger.exception(
|
||||||
f"Complaint from SES failed to get reference from message", exc_info=True
|
"Complaint from SES failed to get reference from message", exc_info=True
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
notification = dao_get_notification_history_by_reference(reference)
|
notification = dao_get_notification_history_by_reference(reference)
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ def deliver_email(self, notification_id):
|
|||||||
|
|
||||||
notification.personalisation = json.loads(personalisation)
|
notification.personalisation = json.loads(personalisation)
|
||||||
send_to_providers.send_email_to_provider(notification)
|
send_to_providers.send_email_to_provider(notification)
|
||||||
except EmailClientNonRetryableException as e:
|
except EmailClientNonRetryableException:
|
||||||
current_app.logger.exception(
|
current_app.logger.exception(
|
||||||
f"Email notification {notification_id} failed", exc_info=True
|
f"Email notification {notification_id} failed", exc_info=True
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user