From e463443d0d1438548012e4f0914e0a55129a5e68 Mon Sep 17 00:00:00 2001 From: Louise Zanier Date: Fri, 25 Jun 2021 12:00:54 +0200 Subject: [PATCH] [caissedepargne] Second KeyError id Some accounts don't have an id for the owner_type, and I missed a ['id']. Closes: 20156@sibi --- modules/caissedepargne/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caissedepargne/pages.py b/modules/caissedepargne/pages.py index d9508d710a..49af06b270 100644 --- a/modules/caissedepargne/pages.py +++ b/modules/caissedepargne/pages.py @@ -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') -- GitLab