handle error when service is unavailable
This commit is contained in:
parent
8abfd81813
commit
a7b0d274a0
1 changed files with 2 additions and 0 deletions
|
|
@ -79,6 +79,8 @@ class SocieteGenerale(BaseBrowser):
|
||||||
raise BrowserIncorrectPassword()
|
raise BrowserIncorrectPassword()
|
||||||
elif error.startswith('Votre session a'):
|
elif error.startswith('Votre session a'):
|
||||||
raise BrowserUnavailable('Session has expired')
|
raise BrowserUnavailable('Session has expired')
|
||||||
|
elif error.startswith('Le service est momentan'):
|
||||||
|
raise BrowserUnavailable(error)
|
||||||
else:
|
else:
|
||||||
raise BrowserIncorrectPassword(error)
|
raise BrowserIncorrectPassword(error)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue