TypeError: argument of type 'NoneType' is not iterable
See original GitHub issueWelcome to Poloniex Lending Bot
2017-06-27 04:21:23 Error: argument of type 'NoneType' is not iterable Requesting returnAvailableAccountBalances
Traceback (most recent call last):
File "/home/.../poloniexlendingbot/lendingbot.py", line 78, in <module>
Lending.cancel_all()
File "/home/.../poloniexlendingbot/modules/Lending.py", line 177, in cancel_all
available_balances = api.return_available_account_balances('lending')
File "/home/.../poloniexlendingbot/modules/Poloniex.py", line 168, in return_available_account_balances
balances = self.api_query('returnAvailableAccountBalances', {"account": account})
File "/home/.../poloniexlendingbot/modules/Poloniex.py", line 43, in new_method
return method(self, *arg, **kws)
File "/home/.../poloniexlendingbot/modules/Poloniex.py", line 125, in api_query
json_ret = _read_response(ret)
File "/home/.../poloniexlendingbot/modules/Poloniex.py", line 90, in _read_response
if 'error' in data:
TypeError: argument of type 'NoneType' is not iterable
Unhandled error, please open a Github issue so we can fix it!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
python - TypeError: argument of type 'NoneType' is not iterable
The problem is that your pickEasy function does not return anything. In Python, a method that didn't return anything returns a NoneType. I...
Read more >How to Fix TypeError in Python: NoneType Object Is Not Iterable
The Python TypeError: NoneType Object Is Not Iterable is an exception that occurs when trying to iterate over a None value. Since in...
Read more >TypeError: argument of type 'NoneType' is not iterable
The python error TypeError: argument of type 'NoneType' is not iterable occurs when the membership operators check a value in a NoneType variable....
Read more >Python TypeError: 'NoneType' object is not iterable Solution | CK
The TypeError: 'NoneType' object is not iterable error is raised when you try to iterate over an object whose value is equal to...
Read more >TypeError: argument of type 'NoneType' is not iterable #696
When I try to import whisper I get this error: if` '/' in name or '\\' in name: TypeError: argument of type 'NoneType'...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
do you mean this?
i just tried but couldn’t reproduce did you have any coins in you lending account?
can you include the config WITHOUT API key and secret
edit: i also couldn’t reproduce with no coins in lending, it just show me the coin already lent. did you have coins lent?
To replicate the issue, set the currencies to analyze to ACTIVE and that’s where it fails based on where the error is being generated. I changed it to ALL and it hasn’t immediately failed. I’ll continue to monitor and report back if there is anything to add. Thanks!