Remove argument from retry

This commit is contained in:
Rebecca Law
2020-03-26 08:44:28 +00:00
parent d0a2e0f3ce
commit d04bb1caca

View File

@@ -331,10 +331,10 @@ def save_api_email(self,
except IntegrityError:
current_app.logger.info(f"Email {notification['id']} already exists.")
except SQLAlchemyError as e:
except SQLAlchemyError:
try:
self.retry(queue=QueueNames.RETRY, exc=e)
self.retry(queue=QueueNames.RETRY)
except self.MaxRetriesExceededError:
current_app.logger.error('Max retry failed' + f"Failed to persist notification {notification['id']}")