mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Offset payment provider: Catch QuotaExceededException
This commit is contained in:
@@ -761,7 +761,7 @@ class OrderRefundView(OrderView):
|
||||
if r.payment or r.provider == "offsetting":
|
||||
try:
|
||||
r.payment_provider.execute_refund(r)
|
||||
except PaymentException as e:
|
||||
except (PaymentException, Quota.QuotaExceededException) as e:
|
||||
r.state = OrderRefund.REFUND_STATE_FAILED
|
||||
r.save()
|
||||
messages.error(self.request, _('One of the refunds failed to be processed. You should '
|
||||
|
||||
Reference in New Issue
Block a user