Skip to content

Commit

Permalink
fix: gracefully handle missing extra
Browse files Browse the repository at this point in the history
This comes from manually issued invoices.

Fixes WEBSITE-4X
  • Loading branch information
nijel committed Feb 18, 2025
1 parent 13dcef0 commit a713a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate_web/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def process_subscription(payment: Payment) -> Subscription:


def process_payment(payment: Payment) -> None:
if not payment.extra:
if not payment.extra or set(payment.extra.keys()) == {"exclude_backends"}:
raise UnprocessablePaymentError
if (
"subscription" in payment.extra
Expand Down

0 comments on commit a713a8a

Please sign in to comment.