[boobank][cragr]AttributeError: 'NotAvailableType' object has no attribute 'replace'
With which module do you encounter problems?
cragr
Describe the problem you encounter
When issuing the list
command, an error happens:
AttributeError: 'NotAvailableType' object has no attribute 'replace'
Paste here the stacktrace or error message you observe
boobank> logging debug
boobank> list
Account Balance Coming
------------------------------------------+----------+----------
2021-01-17 23:13:56,392:DEBUG:bcall:2.1:bcall.py:92:backend_process <Backend 'cragr'>: Calling function <bound method Application._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x03A8CD00>>
2021-01-17 23:13:56,392:DEBUG:bcall:2.1:bcall.py:101:backend_process <Backend 'cragr'>: Called function <bound method Application._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x03A8CD00>> returned: <generator object Application._do_complete_iter at 0x050C7798>
2021-01-17 23:13:56,398:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:271:_get_conn Resetting dropped connection: www.credit-agricole.fr
2021-01-17 23:13:58,430:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.credit-agricole.fr:443 "GET /ca-pca/particulier/operations/synthese.html HTTP/1.1" 200 48209
2021-01-17 23:13:59,045:DEBUG:backend.cragr.browser:2.1:browsers.py:884:internal_callback Handle https://www.credit-agricole.fr/ca-pca/particulier/operations/synthese.html with AccountsPage
2021-01-17 23:13:59,781:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.credit-agricole.fr:443 "GET /ca-pca/particulier/operations/synthese.html HTTP/1.1" 200 48208
2021-01-17 23:14:00,102:DEBUG:backend.cragr.browser:2.1:browsers.py:884:internal_callback Handle https://www.credit-agricole.fr/ca-pca/particulier/operations/synthese.html with AccountsPage
2021-01-17 23:14:00,351:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.credit-agricole.fr:443 "GET /ca-pca/particulier/operations/synthese/jcr:content.produits-valorisation.json/1 HTTP/1.1" 200 898
2021-01-17 23:14:00,383:DEBUG:backend.cragr.browser:2.1:browsers.py:884:internal_callback Handle https://www.credit-agricole.fr/ca-pca/particulier/operations/synthese/jcr:content.produits-valorisation.json/1 with AccountDetailsPage
2021-01-17 23:14:00,729:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.credit-agricole.fr:443 "GET /ca-pca/particulier/operations/synthese/jcr:content.produits-valorisation.json/3 HTTP/1.1" 200 1886
2021-01-17 23:14:00,731:DEBUG:backend.cragr.browser:2.1:browsers.py:884:internal_callback Handle https://www.credit-agricole.fr/ca-pca/particulier/operations/synthese/jcr:content.produits-valorisation.json/3 with AccountDetailsPage
2021-01-17 23:14:01,262:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.credit-agricole.fr:443 "GET /ca-pca/particulier/operations/synthese/jcr:content.produits-valorisation.json/7 HTTP/1.1" 200 676
2021-01-17 23:14:01,265:DEBUG:backend.cragr.browser:2.1:browsers.py:884:internal_callback Handle https://www.credit-agricole.fr/ca-pca/particulier/operations/synthese/jcr:content.produits-valorisation.json/7 with AccountDetailsPage
2021-01-17 23:14:01,633:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.credit-agricole.fr:443 "GET /ca-pca/particulier/operations/operations-courantes/editer-rib/jcr:content.ibaninformation.json?compteIdx=0&grandeFamilleCode=1 HTTP/1.1" 200 367
2021-01-17 23:14:01,637:DEBUG:backend.cragr.browser:2.1:browsers.py:884:internal_callback Handle https://www.credit-agricole.fr/ca-pca/particulier/operations/operations-courantes/editer-rib/jcr:content.ibaninformation.json?compteIdx=0&grandeFamilleCode=1 with IbanPage
Bug(cragr): 'NotAvailableType' object has no attribute 'replace'
Traceback (most recent call last):
File "C:\Users\Bruno\AppData\Roaming\Python\Python38\site-packages\weboob-2.1-py3.8.egg\weboob\core\bcall.py", line 106, in backend_process
for subresult in result:
File "C:\Users\Bruno\AppData\Roaming\Python\Python38\site-packages\weboob-2.1-py3.8.egg\weboob\tools\application\base.py", line 297, in _do_complete_iter
for i, sub in enumerate(res):
File "d:/Dropbox/Projets/boomoney/modules/cragr\browser.py", line 423, in iter_accounts
main_account.iban = self.get_account_iban(main_account._index, 1, main_account.id)
File "d:/Dropbox/Projets/boomoney/modules/cragr\browser.py", line 327, in get_account_iban
if is_iban_valid(iban):
File "C:\Users\Bruno\AppData\Roaming\Python\Python38\site-packages\weboob-2.1-py3.8.egg\weboob\tools\capabilities\bank\iban.py", line 42, in is_iban_valid
iban = clean(iban)
File "C:\Users\Bruno\AppData\Roaming\Python\Python38\site-packages\weboob-2.1-py3.8.egg\weboob\tools\capabilities\bank\iban.py", line 38, in clean
return iban.replace(' ','').replace('\t', '')
AttributeError: 'NotAvailableType' object has no attribute 'replace'
------------------------------------------+----------+----------
boobank>
What are the steps to reproduce the problem?
Just run boobank -b cragr
What weboob version are you using?
Output of weboob-config --version
command:
c:\> weboob-config --version
weboob-config v2.1 Copyright(C) 2010-2021 Christophe Benz, Romain Bignon
What module version are you using?
Output of weboob-config info MODULE_NAME
command:
C:\> weboob-config info cragr
.------------------------------------------------------------------------------.
| Module cragr |
+-----------------.------------------------------------------------------------'
| Version | 202011212142
| Maintainer | Quentin Defenouillère <quentin.defenouillere@budget-insight.com>
| License | LGPLv3+
| Description | Crédit Agricole
| Capabilities | CapProfile, CapBankTransferAddRecipient, CapBankTransfer, CapBankWealth, CapBank, CapCollection, CapTransfer
| Installed | yes
| Location | d:/Dropbox/Projets/boomoney/modules/cragr
| |
| Configuration | website: Caisse Régionale
| | login: Identifiant à 11 chiffres (default: )
| | password: Code personnel à 6 chiffres (default: )
'-----------------'
How did you install weboob?
Windows installation through git clone
Additional info you'd like to mention
Problem appears since 15/01/2021, it seems