Both socket.getaddrinfo and asyncio.BaseEventLoop.getaddrinfo raises OSError when a DNS lookup fails.
It would be more consistent if aiodns.error.DNSError is also an instance of OSError, setting errno and stringified error message as the current implementation does.
Both
socket.getaddrinfo
andasyncio.BaseEventLoop.getaddrinfo
raisesOSError
when a DNS lookup fails. It would be more consistent ifaiodns.error.DNSError
is also an instance ofOSError
, setting errno and stringified error message as the current implementation does.