forked from CGM_Public/pretix_original
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