Replaces IOError by OSError (#26428)

This commit is contained in:
Franck Nijhof 2019-09-04 19:09:24 +02:00 committed by Pascal Vizeli
parent 4004879ae0
commit 0df1b4c7a1
20 changed files with 24 additions and 24 deletions

View file

@ -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
)