Replaces IOError by OSError (#26428)
This commit is contained in:
1 parent
4004879ae0
commit
0df1b4c7a1
20 files changed
+24
-24
No files matched your search
@@ -117,7 +117,7 @@ class TelnetSwitch(SwitchDevice):
|
||||
response = telnet.read_until(b"\r", timeout=self._timeout)
|
||||
_LOGGER.debug("telnet response: %s", response.decode("ASCII").strip())
|
||||
return response.decode("ASCII").strip()
|
||||
except IOError as error:
|
||||
except OSError as error:
|
||||
_LOGGER.error(
|
||||
'Command "%s" failed with exception: %s', command, repr(error)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user