This commit is contained in:
Daniel Høyer Iversen authored and Fabian Affolter committed 2016-09-07 19:17:16 +02:00
1 parent e632a47772
commit 4d41c5cd0f
1 file changed
+1 -1
@@ -72,7 +72,7 @@ class DenonDevice(MediaPlayerDevice):
"""Get the latest details from the device."""
try:
telnet = telnetlib.Telnet(self._host)
except ConnectionRefusedError:
except (ConnectionRefusedError, OSError):
return False
self._pwstate = self.telnet_request(telnet, 'PW?')