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:
parent
78e7e17484
commit
3c5c018e3e
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue