mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Stripe: Fix crash in shredder
This commit is contained in:
@@ -664,7 +664,7 @@ class StripeMethod(BasePaymentProvider):
|
||||
return
|
||||
d = json.loads(obj.info)
|
||||
new = {}
|
||||
if 'source' in d:
|
||||
if d.get('source'):
|
||||
new['source'] = {
|
||||
'id': d['source'].get('id'),
|
||||
'type': d['source'].get('type'),
|
||||
|
||||
Reference in New Issue
Block a user