From f5869b8262fbe0371a888da4ababd3bfd97c8203 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 14 Jan 2014 23:32:29 +0100 Subject: [PATCH] fix crash when there isn't no ID on transaction --- modules/boursorama/pages/account_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/boursorama/pages/account_history.py b/modules/boursorama/pages/account_history.py index 87cc51fe..57323094 100644 --- a/modules/boursorama/pages/account_history.py +++ b/modules/boursorama/pages/account_history.py @@ -60,7 +60,7 @@ class AccountHistory(BasePage): try: _id = tr.xpath('.//input[@type="hidden"]')[0].attrib['id'].split('_')[1] - except KeyError: + except (KeyError,IndexError): _id = 0 operation = Transaction(_id)