diff --git a/modules/banquepopulaire/pages.py b/modules/banquepopulaire/pages.py index 8a856a3b10f27d124f902aedd40d18dc427cc2db..be66b5c94e2dc9c9934052d379ac61b2aa405c9d 100644 --- a/modules/banquepopulaire/pages.py +++ b/modules/banquepopulaire/pages.py @@ -369,7 +369,7 @@ def is_here(self): doc = json.loads(self.response.text) if 'response' in doc: return doc['response']['status'] == 'AUTHENTICATION_SUCCESS' and 'saml2_post' in doc['response'] - except json.decoder.JSONDecodeError: + except ValueError: # not a json page # so it should be Login2Page return False