Cleaning up with black, isort, flake8.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-16 07:37:21 -05:00
parent ab7387acd8
commit 9523cc1d97
28 changed files with 82 additions and 61 deletions

View File

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