mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Stripe: Fix crash in shredder
This commit is contained in:
@@ -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'),
|
||||||
|
|||||||
Reference in New Issue
Block a user