mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-28 14:00:03 -05: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.