PP/PPv2: Fix display of retry-message on pending captures (Fixes: PRETIXEU-6ZF)

This commit is contained in:
Martin Gross
2022-06-29 16:38:34 +02:00
parent 7f0604ff8b
commit af27154d8d
2 changed files with 2 additions and 2 deletions

View File

@@ -473,7 +473,7 @@ class Paypal(BasePaymentProvider):
and payment.info_data['transactions'][0]['related_resources'][0]['sale']['state'] == 'pending'
):
retry = False
except KeyError:
except (KeyError, IndexError):
pass
template = get_template('pretixplugins/paypal/pending.html')
ctx = {'request': request, 'event': self.event, 'settings': self.settings,