Replaces IOError by OSError (#26428)
This commit is contained in:
parent
4004879ae0
commit
0df1b4c7a1
20 changed files with 24 additions and 24 deletions
|
@ -293,7 +293,7 @@ class HangoutsBot:
|
|||
if self.hass.config.is_allowed_path(uri):
|
||||
try:
|
||||
image_file = open(uri, "rb")
|
||||
except IOError as error:
|
||||
except OSError as error:
|
||||
_LOGGER.error(
|
||||
"Image file I/O error(%s): %s", error.errno, error.strerror
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue