fix detection of when Kodi is off/unreachable

This commit is contained in:
Wolfgang Ettlinger 2015-06-18 11:42:35 +02:00
parent 4355686bd6
commit 689255dec0

View file

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