Skip to content

Commit

Permalink
Fixed issue with roku timeouts throwing exceptions when roku losses n… (
Browse files Browse the repository at this point in the history
home-assistant#2386)

* Fixed issue with roku timeouts throwing exceptions when roku losses networking

* Fixed pylint errors
  • Loading branch information
Brent authored and balloob committed Jun 29, 2016
1 parent 78e7e17 commit 3c5c018
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/media_player/roku.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def update(self):
self.current_app = self.roku.current_app
else:
self.current_app = None
except requests.exceptions.ConnectionError:
except (requests.exceptions.ConnectionError,
requests.exceptions.ReadTimeout):
self.current_app = None

def get_source_list(self):
Expand Down

0 comments on commit 3c5c018

Please sign in to comment.