mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
PP/PPv2: Fix display of retry-message on pending captures (Fixes: PRETIXEU-6ZF)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user