fix mocking

This commit is contained in:
J. Nick Koston 2023-12-12 10:31:06 -10:00
parent ee41f045d0
commit af7e966e98
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -218,6 +218,8 @@ async def async_resolve_host(
if zc_error:
# Only show ZC error if getaddrinfo also didn't work
raise zc_error
raise ResolveAPIError(f"Could not resolve host {host} - got no results from OS")
raise ResolveAPIError(
f"Could not resolve host {hosts} - got no results from OS"
)
return addrs