handling banned account
This commit is contained in:
parent
8f24a3fe8f
commit
659cb51c9f
2 changed files with 8 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ from decimal import Decimal, InvalidOperation
|
|||
import re
|
||||
import lxml.html
|
||||
|
||||
from weboob.deprecated.browser import Page as _BasePage, BrowserUnavailable, BrokenPageError
|
||||
from weboob.deprecated.browser import Page as _BasePage, BrowserUnavailable, BrokenPageError, BrowserBanned
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard
|
||||
|
|
@ -42,6 +42,11 @@ class UnavailablePage(BasePage):
|
|||
raise BrowserUnavailable()
|
||||
|
||||
|
||||
class PredisconnectedPage(BasePage):
|
||||
def on_loaded(self):
|
||||
raise BrowserBanned()
|
||||
|
||||
|
||||
class VirtKeyboard(MappedVirtKeyboard):
|
||||
|
||||
margin = 2, 2, 2, 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue