Fixed issue with roku timeouts throwing exceptions when roku losses n… (#2386)

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

* Fixed pylint errors
This commit is contained in:
Brent authored and Paulus Schoutsen committed 2016-06-28 20:26:37 -07:00
1 parent 78e7e17484
commit 3c5c018e3e
1 file changed
+2 -1
@@ -77,7 +77,8 @@ class RokuDevice(MediaPlayerDevice):
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):