cragr: exception when "Switching to site region"
I am using boobank with cragr
on ca-normandie (1.5 serie, module version 201907271801).
I have the following exception when asking for boobank history
:
Bug(cragr): 'NoneType' object has no attribute 'has_two_perimeters'
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/weboob/browser/switch.py", line 91, in wrapper
return val(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/weboob/browser/browsers.py", line 795, in inner
browser.do_login()
File "/home/compta/.local/share/weboob/modules/1.5/cragr/api/browser.py", line 134, in do_login
raise SiteSwitch('region')
weboob.browser.switch.SiteSwitch: Switching to site region
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/weboob/core/bcall.py", line 94, in backend_process
result = function(backend, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/weboob/tools/application/base.py", line 310, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
File "/home/compta/.local/share/weboob/modules/1.5/cragr/module.py", line 155, in get_account
return find_object(self.iter_accounts(), id=_id, error=AccountNotFound)
File "/home/compta/.local/share/weboob/modules/1.5/cragr/module.py", line 158, in iter_accounts
return self.browser.iter_accounts()
File "/usr/local/lib/python3.7/site-packages/weboob/browser/switch.py", line 95, in wrapper
return val2(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/weboob/browser/browsers.py", line 795, in inner
browser.do_login()
File "/home/compta/.local/share/weboob/modules/1.5/cragr/regions/browser.py", line 217, in do_login
self.get_all_perimeters()
File "/home/compta/.local/share/weboob/modules/1.5/cragr/regions/browser.py", line 245, in get_all_perimeters
if self.page.has_two_perimeters():
AttributeError: 'NoneType' object has no attribute 'has_two_perimeters'