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()
|
||||
elif error.startswith('Votre session a'):
|
||||
raise BrowserUnavailable('Session has expired')
|
||||
elif error.startswith('Le service est momentan'):
|
||||
raise BrowserUnavailable(error)
|
||||
else:
|
||||
raise BrowserIncorrectPassword(error)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue