diff --git a/modules/bred/pages.py b/modules/bred/pages.py index b81c6648..58ac41a7 100644 --- a/modules/bred/pages.py +++ b/modules/bred/pages.py @@ -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()))