The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit e463443d authored by Louise Zanier's avatar Louise Zanier Committed by Vincent A

[caissedepargne] Second KeyError id

Some accounts don't have an id for the owner_type, and I missed a ['id'].

Closes: 20156@sibi
parent 18337878
......@@ -762,7 +762,7 @@ def get_list(self, owner_name):
self.browser.new_website = False
for table in self.doc.xpath('//table[@cellpadding="1"]'):
account_type = Account.TYPE_UNKNOWN
owner_type = self.get_owner_type(table.attrib['id'])
owner_type = self.get_owner_type(table.attrib.get('id'))
for tr in table.xpath('./tr'):
tds = tr.findall('td')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment