This repository has been archived by the owner on Jul 30, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes AttributerError when requests failed to get response
2018-06-04 23:26:42 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/home/homeassistant/.homeassistant/custom_components/arlo.py", line 83, in hub_refresh update_base_station=True) File "/srv/homeassistant/lib/python3.6/site-packages/pyarlo/init.py", line 262, in update base.update() File "/srv/homeassistant/lib/python3.6/site-packages/pyarlo/base_station.py", line 457, in update self._attrs = self._session.refresh_attributes(self.name) File "/srv/homeassistant/lib/python3.6/site-packages/pyarlo/init.py", line 206, in refresh_attributes data = self.query(url).get('data') AttributeError: 'NoneType' object has no attribute 'get'
- Loading branch information