Skip to content
Snippets Groups Projects
Commit 3c5c018e authored by Brent's avatar Brent Committed by Paulus Schoutsen
Browse files

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
parent 78e7e174
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment