ignore special accounts
This commit is contained in:
parent
e9b27dd073
commit
3247217dad
1 changed files with 4 additions and 0 deletions
|
|
@ -109,6 +109,10 @@ class AccountsPage(BredBasePage):
|
|||
|
||||
args = self.js2args(a.attrib['href'])
|
||||
|
||||
if not 'numero_compte' in args or not 'numero_poste' in args:
|
||||
self.logger.warning('Account link for %r with strange args: %s' % (a.attrib.get('alt', a.text), args))
|
||||
continue
|
||||
|
||||
account = Account()
|
||||
account.id = u'%s.%s' % (args['numero_compte'], args['numero_poste'])
|
||||
account.label = to_unicode(a.attrib.get('alt', a.text.strip()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue