mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-09 02:28:22 -04:00
Celery `self.retry` raises an exception to communicate that the task needs to be retried. Since our ses task is wrapped in a catch-all except block it logs that exception as an error before retrying. Handling Retry class separately allows us to raise it without logging the traceback.