detect when credentials are wrong
This commit is contained in:
parent
a8d2d86c6e
commit
d17dda5965
1 changed files with 3 additions and 0 deletions
|
|
@ -102,6 +102,9 @@ class Cragr(BaseBrowser):
|
|||
# The result of POST is the destination URL.
|
||||
url = self.page.get_result_url()
|
||||
|
||||
if not url.startswith('http'):
|
||||
raise BrowserIncorrectPassword(url)
|
||||
|
||||
self.location(url)
|
||||
|
||||
if self.is_on_page(LoginErrorPage) or not self.is_logged():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue