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
@@ -94,7 +94,7 @@ def _parse_skyhub_response(data_str):
|
||||
"""Parse the Sky Hub data format."""
|
||||
pattmatch = re.search("attach_dev = '(.*)'", data_str)
|
||||
if pattmatch is None:
|
||||
raise IOError(
|
||||
raise OSError(
|
||||
"Error: Impossible to fetch data from"
|
||||
+ " Sky Hub. Try to reboot the router."
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user