Offset payment provider: Catch QuotaExceededException

This commit is contained in:
Raphael Michel
2019-10-17 10:15:10 +02:00
parent 7fb77eef34
commit 5e59d41f6e

View File

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