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