use exception AdopteBanned instead of BrowserUnavailable
This commit is contained in:
parent
fd3ccda664
commit
26e7604cd4
2 changed files with 6 additions and 4 deletions
|
|
@ -19,7 +19,8 @@
|
|||
import re
|
||||
|
||||
from weboob.tools.mech import ClientForm
|
||||
from weboob.tools.browser import BrowserIncorrectPassword, BrowserUnavailable
|
||||
from weboob.tools.browser import BrowserIncorrectPassword
|
||||
from weboob.backends.aum.exceptions import AdopteBanned
|
||||
from weboob.capabilities.account import AccountRegisterError
|
||||
|
||||
from .base import PageBase
|
||||
|
|
@ -114,7 +115,7 @@ class RedirectPage(PageBase):
|
|||
|
||||
class BanPage(PageBase):
|
||||
def on_loaded(self):
|
||||
raise BrowserUnavailable('Your IP address is banned.')
|
||||
raise AdopteBanned('Your IP address is banned.')
|
||||
|
||||
class ShopPage(PageBase):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue