paypal fix for #11152 KeyError: 'counterparty'
This commit is contained in:
parent
91c5bc3661
commit
9b52ff5140
1 changed files with 4 additions and 1 deletions
|
|
@ -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']
|
||||
try:
|
||||
raw = transaction['counterparty']
|
||||
except KeyError:
|
||||
raw = transaction['displayType']
|
||||
t.parse(date=date, raw=raw)
|
||||
amount = transaction['displayAmount']
|
||||
t.set_amount(amount)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue