on error during login, raise exception
This commit is contained in:
parent
0998d12327
commit
76da084ec1
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class HSBC(BaseBrowser):
|
||||||
self._session = m.group(1)
|
self._session = m.group(1)
|
||||||
|
|
||||||
data = {'Secret': self.password}
|
data = {'Secret': self.password}
|
||||||
r = self.readurl('https://client.hsbc.fr/cgi-bin/emcgi?sessionid=%s' % self._session, urllib.urlencode(data))
|
r = self.readurl('https://client.hsbc.fr/cgi-bin/emcgi?sessionid=%s' % self._session, urllib.urlencode(data), if_fail='raise')
|
||||||
if r.find('Erreur Identification') >= 0:
|
if r.find('Erreur Identification') >= 0:
|
||||||
raise BrowserIncorrectPassword()
|
raise BrowserIncorrectPassword()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue