Offset refunds: Catch exceptions in the right place

This commit is contained in:
Raphael Michel
2019-11-10 12:58:49 +01:00
parent df3cc1499f
commit da7e1dee3e
4 changed files with 49 additions and 3 deletions

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: