Commit 9b52ff51 authored by bdelpey's avatar bdelpey Committed by Romain Bignon

paypal fix for #11152 KeyError: 'counterparty'

parent 91c5bc36
......@@ -100,7 +100,10 @@ class NewPartHistoryPage(Page):
def parse_transaction(self, transaction):
t = FrenchTransaction(transaction['activityId'])
date = parse_french_date(transaction['date'])
raw = transaction['counterparty']
raw = transaction['counterparty']
except KeyError:
raw = transaction['displayType']
t.parse(date=date, raw=raw)
amount = transaction['displayAmount']
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment