amazon module TOTP enabled failed to login with TypeError NotAvailableType
With which module do you encounter problems?
amazon
Describe the problem you encounter
account with TOTP enabled failed to login
Paste here the stacktrace or error message you observe
Bug(amazon): argument of type 'NotAvailableType' is not iterable
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/home/jaoued/.local/lib/python3.11/site-packages/woob/core/bcall.py", line 88, in backend_process
result = function(backend, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jaoued/.local/lib/python3.11/site-packages/woob/tools/application/base.py", line 348, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jaoued/.local/lib/python3.11/site-packages/woob/capabilities/bill.py", line 376, in iter_resources
return self.iter_subscription()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jaoued/.local/share/woob/modules/3.6/woob_modules/amazon/module.py", line 83, in iter_subscription
return self.browser.iter_subscription()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jaoued/.local/lib/python3.11/site-packages/woob/browser/browsers.py", line 1118, in inner
browser.do_login()
File "/home/jaoued/.local/share/woob/modules/3.6/woob_modules/amazon/browser.py", line 368, in do_login
assert any(wrongpass_message in msg for wrongpass_message in self.WRONGPASS_MESSAGES), msg
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jaoued/.local/share/woob/modules/3.6/woob_modules/amazon/browser.py", line 368, in <genexpr>
assert any(wrongpass_message in msg for wrongpass_message in self.WRONGPASS_MESSAGES), msg
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NotAvailableType' is not iterable
What woob version are you using?
Output of woob config --version
command:
Woob config v3.6 Copyright(C) 2010-2023 Christophe Benz, Romain Bignon
What module version are you using?
Output of woob config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module amazon |
+-----------------.------------------------------------------------------------'
| Version | 202308071300
| Maintainer | Théo Dorée <tdoree@budget-insight.com>
| License | LGPLv3+
| Description | Amazon
| Capabilities | CapDocument, CapCredentialsCheck, CapCollection
| Installed | yes
| Location | https://updates.weboob.org/3/main/amazon.tar.gz
| |
| Configuration | website: Website (default: www.amazon.com)
| | email: Username (default: )
| | password: Password (default: )
'-----------------'
How did you install woob?
pip
any help will be appreciated