mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 07:51:13 -05:00
Merge pull request #751 from GSA/fix-baseexception
Update try/except block to catch Exception
This commit is contained in:
@@ -76,7 +76,7 @@ def send_sms_to_provider(notification):
|
|||||||
notification.job_id,
|
notification.job_id,
|
||||||
notification.job_row_number,
|
notification.job_row_number,
|
||||||
)
|
)
|
||||||
except BaseException:
|
except Exception:
|
||||||
# It is our 2facode, maybe
|
# It is our 2facode, maybe
|
||||||
key = f"2facode-{notification.id}".replace(" ", "")
|
key = f"2facode-{notification.id}".replace(" ", "")
|
||||||
recipient = redis_store.raw_get(key)
|
recipient = redis_store.raw_get(key)
|
||||||
|
|||||||
Reference in New Issue
Block a user