Stripe: Fix crash in shredder

This commit is contained in:
Raphael Michel
2021-08-19 12:09:15 +02:00
parent e7546a7575
commit 9a7f3e2d8a
+1 -1
View File
@@ -664,7 +664,7 @@ class StripeMethod(BasePaymentProvider):
return return
d = json.loads(obj.info) d = json.loads(obj.info)
new = {} new = {}
if 'source' in d: if d.get('source'):
new['source'] = { new['source'] = {
'id': d['source'].get('id'), 'id': d['source'].get('id'),
'type': d['source'].get('type'), 'type': d['source'].get('type'),