From 27ddd412070a368d73a8c5256223557d9a2bd57e Mon Sep 17 00:00:00 2001 From: Christophe Francois Date: Mon, 21 Jun 2021 17:55:39 +0200 Subject: [PATCH] [creditmutuel] Raise warning instead of error for cards in tech error When the page which contains the "functions" of a card is unavailable due to a technical error, we log a warning instead of raising BrowserUnavailable for the whole connection. We have most info for the card (it's the same behavior as when the user is not authorized to access the page). Closes: 34652@zendesk --- modules/creditmutuel/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/creditmutuel/pages.py b/modules/creditmutuel/pages.py index f7a0e45370..337d24f9b6 100644 --- a/modules/creditmutuel/pages.py +++ b/modules/creditmutuel/pages.py @@ -2866,7 +2866,7 @@ def parse(self, el): elif doc.xpath('//div/p[contains(text(), "Vous n\'avez pas l\'autorisation")]'): self.logger.warning("The user can't reach this page") elif doc.xpath('//p[contains(text(), "Problème technique")]'): - raise BrowserUnavailable(CleanText(doc.xpath('//p[contains(text(), "Problème technique")]'))(self)) + self.logger.warning(CleanText(doc.xpath('//p[contains(text(), "Problème technique")]'))(self)) else: assert False, 'xpath for card type information could have changed' else: -- GitLab