Commit ef018251 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[cragr/api] Raise wrongpass if username or password is empty

Some connections have an empty password and we crash way too late in the
code of because empty passwords are not detected by the
regexp in The purposeof this patch is to raise wrongpass
properly instead of bug.

Closes: 39327@sibi
parent 19ad1758
......@@ -119,6 +119,9 @@ class CragrAPI(LoginBrowser):
def do_login(self):
if not self.username or not self.password:
raise BrowserIncorrectPassword()
# First we try to connect to the new website: if the connection
# is on the old website, we will automatically redirected.
website ='.fr', '')
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