mirror of
https://github.com/esphome/esphome.git
synced 2025-10-22 03:33:52 +01:00
fix, cover
This commit is contained in:
@@ -34,7 +34,7 @@ class AsyncResolver:
|
||||
self.result = await hr.async_resolve_host(
|
||||
hosts, port, timeout=RESOLVE_TIMEOUT
|
||||
)
|
||||
except Exception as e:
|
||||
except (ResolveAPIError, ResolveTimeoutAPIError, OSError) as e:
|
||||
self.exception = e
|
||||
finally:
|
||||
self.event.set()
|
||||
|
Reference in New Issue
Block a user