mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)
This commit is contained in:
commit
31b89599e9
1 changed files with 2 additions and 0 deletions
|
@ -835,6 +835,8 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
|
|||
default_gai_errnos = [
|
||||
('EAI_NONAME', -2),
|
||||
('EAI_NODATA', -5),
|
||||
# Encountered when trying to resolve IPv6-only hostnames
|
||||
('WSANO_DATA', 11004),
|
||||
]
|
||||
|
||||
denied = ResourceDenied("Resource '%s' is not available" % resource_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue