mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-18 08:02:31 -05:00
Remove argument from retry
This commit is contained in:
@@ -331,10 +331,10 @@ def save_api_email(self,
|
|||||||
except IntegrityError:
|
except IntegrityError:
|
||||||
current_app.logger.info(f"Email {notification['id']} already exists.")
|
current_app.logger.info(f"Email {notification['id']} already exists.")
|
||||||
|
|
||||||
except SQLAlchemyError as e:
|
except SQLAlchemyError:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.retry(queue=QueueNames.RETRY, exc=e)
|
self.retry(queue=QueueNames.RETRY)
|
||||||
except self.MaxRetriesExceededError:
|
except self.MaxRetriesExceededError:
|
||||||
current_app.logger.error('Max retry failed' + f"Failed to persist notification {notification['id']}")
|
current_app.logger.error('Max retry failed' + f"Failed to persist notification {notification['id']}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user