Fix OSError (#40393)

pull/40430/head
Maciej Bieniek 2020-09-21 21:10:02 +02:00 committed by GitHub
parent 447446c565
commit 663245c351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class ShellyDeviceWrapper(update_coordinator.DataUpdateCoordinator):
try:
async with async_timeout.timeout(5):
return await self.device.update()
except aiocoap_error.Error as err:
except (aiocoap_error.Error, OSError) as err:
raise update_coordinator.UpdateFailed("Error fetching data") from err
@property