fix crash when there isn't no ID on transaction

This commit is contained in:
Romain Bignon 2014-01-14 23:32:29 +01:00
commit f5869b8262

View file

@ -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)