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 2016-06-28 22:26:37 -05:00 committed by Paulus Schoutsen
parent 78e7e17484
commit 3c5c018e3e

View file

@ -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):