Commit 4b87df88 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[cragr] Remove assert False since all error message are handled

The assert False at the end of the security check will force a crash if
we manage to login after the second try. Since all error messages are
now handled, this assert False is now obsolete so I removed it.

Closes: 35412@sibi
parent 81d1725a
......@@ -159,9 +159,8 @@ class CragrAPI(LoginBrowser):
message = error.get('message', '')
if 'Un incident technique' in message:
raise BrowserUnavailable(message)
assert False, 'Unhandled Server Error encountered: %s' % error.get('message', '')
# accounts_url may contain '/particulier', '/professionnel' or '/association'
# accounts_url may contain '/particulier', '/professionnel', '/entreprise' or '/association'
self.accounts_url = self.page.get_accounts_url()
assert self.accounts_url, 'Could not get accounts url from security check'
self.location(self.accounts_url)
......
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