correctly handle 500 error during login
This commit is contained in:
parent
d26180c5a8
commit
3ec1ca1eda
2 changed files with 9 additions and 7 deletions
|
|
@ -21,7 +21,6 @@
|
|||
import datetime
|
||||
|
||||
from weboob.browser.pages import HTMLPage, LoggedPage
|
||||
from weboob.exceptions import BrowserIncorrectPassword
|
||||
from weboob.browser.elements import ListElement, ItemElement, method
|
||||
from weboob.browser.filters.standard import CleanText, CleanDecimal, Regexp, DateGuesser
|
||||
from weboob.browser.filters.html import Link
|
||||
|
|
@ -33,11 +32,6 @@ __all__ = ['LoginPage']
|
|||
|
||||
|
||||
class LoginPage(HTMLPage):
|
||||
def on_load(self):
|
||||
# Yes, I know... In the Wild Wild Web, nobody respects nothing
|
||||
if self.response.status_code == 500:
|
||||
raise BrowserIncorrectPassword()
|
||||
|
||||
def login(self, username, password):
|
||||
form = self.get_form(name='formIdentification')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue