raise BrowserUnavailable when going on the ban page
This commit is contained in:
parent
8c7da03c60
commit
bc978b7112
1 changed files with 3 additions and 2 deletions
|
|
@ -19,7 +19,7 @@
|
|||
import re
|
||||
|
||||
from weboob.tools.mech import ClientForm
|
||||
from weboob.tools.browser import BrowserIncorrectPassword
|
||||
from weboob.tools.browser import BrowserIncorrectPassword, BrowserUnavailable
|
||||
from weboob.capabilities.account import AccountRegisterError
|
||||
|
||||
from .base import PageBase
|
||||
|
|
@ -113,7 +113,8 @@ class RedirectPage(PageBase):
|
|||
self.browser.location('/wait.php')
|
||||
|
||||
class BanPage(PageBase):
|
||||
pass
|
||||
def on_loaded(self):
|
||||
raise BrowserUnavailable('Your IP address is banned.')
|
||||
|
||||
class ShopPage(PageBase):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue