Offset refunds: Catch exceptions in the right place

This commit is contained in:
Raphael Michel
2019-11-10 12:59:10 +01:00
parent df3cc1499f
commit da7e1dee3e
4 changed files with 49 additions and 3 deletions
+4 -1
View File
@@ -871,7 +871,10 @@ class OffsettingProvider(BasePaymentProvider):
provider='offsetting',
info=json.dumps({'orders': [refund.order.code]})
)
p.confirm(ignore_date=True)
try:
p.confirm(ignore_date=True)
except Quota.QuotaExceededException:
pass
@property
def settings_form_fields(self) -> dict: