Merge pull request #751 from GSA/fix-baseexception

Update try/except block to catch Exception
This commit is contained in:
Carlo Costino
2024-01-18 17:43:44 -05:00
committed by GitHub

View File

@@ -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)