From 2900c92101c05de0228ab1426f9a5c091592f073 Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Tue, 15 Jan 2019 11:41:25 +0100 Subject: [PATCH] [creditmutuel] Delete the warning logger in case of IndexError Indeed, in this case the history exists but not for the 6 months. --- modules/creditmutuel/browser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/creditmutuel/browser.py b/modules/creditmutuel/browser.py index 8b7ba663f1..dbf2f4f5c0 100644 --- a/modules/creditmutuel/browser.py +++ b/modules/creditmutuel/browser.py @@ -312,8 +312,11 @@ def list_operations(self, page, account): form.pop(k, None) form.submit() # IndexError when form xpath returns [], StopIteration if next called on empty iterable - except (IndexError, StopIteration, FormNotFound): + except (StopIteration, FormNotFound): self.logger.warning('Could not get history on new website') + except IndexError: + # 6 months history is not available + pass while self.page: try: -- GitLab