fix retrieve of accounts
This commit is contained in:
parent
47df1413ae
commit
bd001f631e
2 changed files with 16 additions and 5 deletions
|
|
@ -49,6 +49,13 @@ class AccountsPage(BasePage):
|
|||
u'Mes comptes': Account.TYPE_CHECKING,
|
||||
}
|
||||
|
||||
def is_error(self):
|
||||
for script in self.document.xpath('//script'):
|
||||
if script.text is not None and u"Le service est momentanément indisponible" in script.text:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def get_list(self):
|
||||
account_type = Account.TYPE_UNKNOWN
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue