diff --git a/modules/cragr/api/browser.py b/modules/cragr/api/browser.py index ee6e30b39638f6fd3c7abc8199b44dd850a2b412..a1d3ae291a81637e43693c114c1514c264966363 100644 --- a/modules/cragr/api/browser.py +++ b/modules/cragr/api/browser.py @@ -119,6 +119,9 @@ def deinit(self): self.netfinca.deinit() 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 = self.website.replace('.fr', '')