Commit 282be9d2 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[banquepopulaire] Added error message in french

The "an error has occurred" can also appear in french ("une erreur s'est

Closes: 29530@sibi
parent e4417c12
......@@ -278,7 +278,7 @@ class UnavailablePage(LoggedPage, MyHTMLPage):
if "est indisponible" in h1:
raise BrowserUnavailable(h1)
body = CleanText(".")(self.doc)
if "An unexpected error has occurred." in body:
if "An unexpected error has occurred." in body or "Une erreur s'est produite" in body:
raise BrowserUnavailable(body)
a = Link('//a[@class="btn"][1]', default=None)(self.doc)
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