fix detection of when Kodi is off/unreachable
This commit is contained in:
parent
4355686bd6
commit
689255dec0
1 changed files with 1 additions and 2 deletions
|
@ -108,8 +108,7 @@ class KodiDevice(MediaPlayerDevice):
|
|||
""" Returns the active player objects or None """
|
||||
try:
|
||||
return self._server.Player.GetActivePlayers()
|
||||
except (OSError, ConnectionError):
|
||||
# OSError may be raised for "No route to host"
|
||||
except jsonrpc_requests.jsonrpc.TransportError:
|
||||
return None
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue