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 """
|
""" Returns the active player objects or None """
|
||||||
try:
|
try:
|
||||||
return self._server.Player.GetActivePlayers()
|
return self._server.Player.GetActivePlayers()
|
||||||
except (OSError, ConnectionError):
|
except jsonrpc_requests.jsonrpc.TransportError:
|
||||||
# OSError may be raised for "No route to host"
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue