fix crash when there isn't no ID on transaction
This commit is contained in:
parent
b319b92a15
commit
f5869b8262
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class AccountHistory(BasePage):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_id = tr.xpath('.//input[@type="hidden"]')[0].attrib['id'].split('_')[1]
|
_id = tr.xpath('.//input[@type="hidden"]')[0].attrib['id'].split('_')[1]
|
||||||
except KeyError:
|
except (KeyError,IndexError):
|
||||||
_id = 0
|
_id = 0
|
||||||
|
|
||||||
operation = Transaction(_id)
|
operation = Transaction(_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue