Bug #1387

Banque Postale: AttributeError: 'NoneType' object has no attribute 'attrib'

Added by leto 2 about 2 years ago. Updated almost 2 years ago.

Status:Resolved Start:2014-05-22
Priority:Normal Due date:
Assigned to:- % Done:

100%

Category:Modules Spent time: -
Target version:0.j
Module:bp Branch:

Description

boobank -b bp
Welcome to boobank v0.j

Copyright(C) 2010-2011 Romain Bignon, Christophe Benz
This program is free software: you can redistribute it and/or modify
it under the tetotos of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Type "help" to display available commands.

Loaded backends: bp

boobank> ls
                 Account                     Balance    Coming 
------------------------------------------+----------+----------
Bug(bp): 'NoneType' object has no attribute 'attrib'
Use "logging debug" option to print backtraces.
------------------------------------------+----------+----------
                                    Total       0.00       0.00
boobank> logging debug
boobank> ls
                 Account                     Balance    Coming 
------------------------------------------+----------+----------
2014-05-22 14:37:53,469:DEBUG:bcall:0.j:bcall.py:78:backend_process <Backend 'bp'>: Calling function <bound method Boobank._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x7ff835467f90>>
2014-05-22 14:37:53,815:DEBUG:backend.bp.browser:0.j:browser.py:414:lowsslcheck Found ccdf2885f1d6df19e15d098dd52fd486609d891ebd2724970a5cfcb9254b6fa5 as certificate hash
2014-05-22 14:37:54,174:DEBUG:backend.bp.browser:0.j:browser.py:674:_change_location [user_id=************* ] Went on https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginfototo?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers
2014-05-22 14:37:54,177:DEBUG:backend.bp.browser:0.j:browser.py:684:_change_location !! Relogin !!
2014-05-22 14:37:54,177:DEBUG:bcall:0.j:bcall.py:84:backend_process <Backend 'bp'>: Called function <bound method Boobank._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x7ff835467f90>> raised an error: AttributeError("'NoneType' object has no attribute 'attrib'",)
Bug(bp): 'NoneType' object has no attribute 'attrib'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/core/bcall.py", line 80, in backend_process
    result = function(backend, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/tools/application/base.py", line 281, in _do_complete
    res = getattr(backend, function)(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/capabilities/bank.py", line 180, in iter_resources
    return self.iter_accounts()
  File "/home/toto/weboob/modules/bp/backend.py", line 46, in iter_accounts
    return self.browser.get_accounts_list()
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/tools/backend.py", line 298, in browser
    self._browser = self.create_default_browser()
  File "/home/toto/weboob/modules/bp/backend.py", line 43, in create_default_browser
    return self.create_browser(self.config['login'].get(), self.config['password'].get())
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/tools/backend.py", line 346, in create_browser
    return self.BROWSER(*args, **kwargs)
  File "/home/toto/weboob/modules/bp/browser.py", line 66, in __init__
    BaseBrowser.__init__(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/tools/browser/browser.py", line 516, in __init__
    self.home()
  File "/home/toto/weboob/modules/bp/browser.py", line 69, in home
    self.location('https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginfototo?TAM_OP=login&'
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/tools/browser/browser.py", line 143, in inner
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/tools/decorators.py", line 41, in f_retry
    return f(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/tools/browser/browser.py", line 590, in location
    self._change_location(mechanize.Browser.open(self, *args, **kwargs), no_login=no_login)
  File "/usr/local/lib/python2.7/dist-packages/weboob-0.j-py2.7.egg/weboob/tools/browser/browser.py", line 685, in _change_location
    self.login()
  File "/home/toto/weboob/modules/bp/browser.py", line 81, in login
    self.page.login(self.username, self.password)
  File "/home/toto/weboob/modules/bp/pages/login.py", line 77, in login
    vk = VirtKeyboard(self)
  File "/home/toto/weboob/modules/bp/pages/login.py", line 56, in __init__
    img_file = page.browser.openurl(img.attrib['src'])
AttributeError: 'NoneType' object has no attribute 'attrib'

------------------------------------------+----------+----------
                                    Total       0.00       0.00

History

Updated by Jean-Philippe Dutreve about 2 years ago

Je confirme ce bug sur le module bp.

Updated by Florent Fourcot almost 2 years ago

  • Category changed from Application / boobank to Modules
  • Status changed from New to Resolved
  • Assigned to deleted (Romain Bignon)
  • % Done changed from 0 to 100

Updated by Romain Bignon almost 2 years ago

  • Target version set to 0.j

Also available in: Atom PDF