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 27ddd412 authored by Christophe François's avatar Christophe François Committed by Vincent A

[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
parent 1b70d995
......@@ -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:
......
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