tchellomello / python-arlo

Python Arlo is a library written in Python 2.7/3x that exposes the Netgear Arlo cameras as Python objects.
GNU Lesser General Public License v3.0
100 stars 35 forks source link

Sometimes I hit this issue when trying to refresh Arlo BaseStation status #77

Closed tchellomello closed 6 years ago

tchellomello commented 6 years ago
2018-06-04 16:29:52 DEBUG (Thread-131) [sseclient] Initialized SSE client from event source None
Exception in thread Thread-131:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/mdemello/.virtualenvs/hass_devel/lib/python3.6/site-packages/pyarlo/base_station.py", line 56, in thread_function
    for event in (self.__sseclient).events():
  File "/home/mdemello/.virtualenvs/hass_devel/lib/python3.6/site-packages/sseclient/__init__.py", line 58, in events
    for chunk in self._read():
  File "/home/mdemello/.virtualenvs/hass_devel/lib/python3.6/site-packages/sseclient/__init__.py", line 48, in _read
    for chunk in self._event_source:
TypeError: 'NoneType' object is not iterable