creditdunord fix crash on accounts which doesn't support history

This commit is contained in:
Baptiste Delpey 2015-05-25 16:30:46 +02:00 committed by Romain Bignon
commit f7f700bd43

View file

@ -257,7 +257,8 @@ class TransactionsPage(CDNBasePage):
# there is no transactions for this account, this is normal. # there is no transactions for this account, this is normal.
return return
else: else:
raise BrokenPageError('Unable to find transactions list in scripts') # No history on this account
return
data = json.loads('[%s]' % txt.replace('"', '\\"').replace("'", '"')) data = json.loads('[%s]' % txt.replace('"', '\\"').replace("'", '"'))