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
produite").

Closes: 29530@sibi
......@@ -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)
......