question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: argument of type 'NoneType' is not iterable

See original GitHub issue

Running 0.9.0. Error is added to the log once per minute.

Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/media_player/alexa.py", line 167, in <lambda>
    track_utc_time_change(hass, lambda now: update_devices(), second=30)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 325, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 325, in wrapper
    result = method(*args, **kwargs)
  File "/config/custom_components/media_player/alexa.py", line 189, in update_devices
    update_devices, url)
  File "/config/custom_components/media_player/alexa.py", line 253, in __init__
    self.refresh(device)
  File "/config/custom_components/media_player/alexa.py", line 293, in refresh
    self._session['progress'] else None)
TypeError: argument of type 'NoneType' is not iterable

Hass.io 0.75.3 running on ResinOS 2.3.0+rev1. Supervisor 125.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
alandtsecommented, Aug 25, 2018

Collecting other instances we need to guard against:

File “/config/custom_components/media_player/alexa.py”, line 291, in refresh self._media_is_muted = self._session[‘volume’][‘muted’] TypeError: ‘NoneType’ object is not subscriptable

0reactions
kwdavidsoncommented, Aug 25, 2018

@alandtse The code in the PR works perfectly for me. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found