Skip to content

Commit

Permalink
catch and reraise pinpoint errors (#2432)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai authored Jan 29, 2025
1 parent f4df45a commit 651163c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/delivery/send_to_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
MalwareDetectedException,
MalwareScanInProgressException,
NotificationTechnicalFailureException,
PinpointConflictException,
PinpointValidationException,
)
from app.models import (
BRANDING_BOTH_EN,
Expand Down Expand Up @@ -126,6 +128,8 @@ def send_sms_to_provider(notification):
service_id=notification.service_id,
sending_vehicle=sending_vehicle,
)
except (PinpointConflictException, PinpointValidationException) as e:
raise e
except Exception as e:
notification.billable_units = template.fragment_count
dao_update_notification(notification)
Expand Down

0 comments on commit 651163c

Please sign in to comment.