This commit is contained in:
Daniel Høyer Iversen 2016-09-07 19:17:16 +02:00 committed by Fabian Affolter
parent e632a47772
commit 4d41c5cd0f

View File

@ -72,7 +72,7 @@ class DenonDevice(MediaPlayerDevice):
"""Get the latest details from the device.""" """Get the latest details from the device."""
try: try:
telnet = telnetlib.Telnet(self._host) telnet = telnetlib.Telnet(self._host)
except ConnectionRefusedError: except (ConnectionRefusedError, OSError):
return False return False
self._pwstate = self.telnet_request(telnet, 'PW?') self._pwstate = self.telnet_request(telnet, 'PW?')