mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-02 17:48:36 -04:00
Cleaning up with black, isort, flake8.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -121,7 +121,8 @@ def deliver_sms(self, notification_id):
|
||||
)
|
||||
except Exception as e:
|
||||
update_notification_status_by_id(
|
||||
notification_id, NotificationStatus.TEMPORARY_FAILURE,
|
||||
notification_id,
|
||||
NotificationStatus.TEMPORARY_FAILURE,
|
||||
)
|
||||
if isinstance(e, SmsClientResponseException):
|
||||
current_app.logger.warning(
|
||||
@@ -146,7 +147,8 @@ def deliver_sms(self, notification_id):
|
||||
)
|
||||
)
|
||||
update_notification_status_by_id(
|
||||
notification_id, NotificationStatus.TECHNICAL_FAILURE,
|
||||
notification_id,
|
||||
NotificationStatus.TECHNICAL_FAILURE,
|
||||
)
|
||||
raise NotificationTechnicalFailureException(message)
|
||||
|
||||
@@ -189,6 +191,7 @@ def deliver_email(self, notification_id):
|
||||
)
|
||||
)
|
||||
update_notification_status_by_id(
|
||||
notification_id, NotificationStatus.TECHNICAL_FAILURE,
|
||||
notification_id,
|
||||
NotificationStatus.TECHNICAL_FAILURE,
|
||||
)
|
||||
raise NotificationTechnicalFailureException(message)
|
||||
|
||||
Reference in New Issue
Block a user