Commit 6c0b2ba6 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[caissedepargne] handle unavailable service message

and raise browserUnavailable
parent a5bc85ad
......@@ -67,6 +67,11 @@ def float_to_decimal(f):
class LoginPage(JsonPage):
def on_load(self):
error_msg = self.doc.get('error')
if error_msg and 'Le service est momentanément indisponible' in error_msg:
raise BrowserUnavailable(error_msg)
def get_response(self):
return 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