more flake 8

This commit is contained in:
Kenneth Kehl
2024-08-15 11:24:24 -07:00
parent c0ab7c8a68
commit 3ac2db4379
2 changed files with 4 additions and 4 deletions

View File

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

View File

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