Stripe: Fix crash in shredder

This commit is contained in:
Raphael Michel
2021-08-19 12:09:15 +02:00
parent e7546a7575
commit 9a7f3e2d8a

View File

@@ -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'),