From 1a0e419f03180fd2e93b78e046e40f362cc9b6e6 Mon Sep 17 00:00:00 2001 From: Guillaume Risbourg Date: Thu, 2 Jan 2020 17:35:11 +0100 Subject: [PATCH] [lcl] Handle load_details for deferred card summary Summary transactions do not have any details. --- modules/lcl/pages.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index dea0a9c680..46567db777 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -464,6 +464,11 @@ class _get_operations(Pagination, Transaction.TransactionsElement): class item(Transaction.TransactionElement): def load_details(self): + # Those are summary for deferred card transactions, + # they do not have details. + if CleanText('./td[contains(text(), "RELEVE CB")]')(self): + return None + row = Attr('.', 'id', default=None)(self) assert row, 'HTML format of transactions details changed' return self.page.browser.async_open( -- GitLab