mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
Issue #13453: Catch EAI_FAIL in support.transient_internet.
This commit is contained in:
commit
1635e9cc59
1 changed files with 1 additions and 0 deletions
|
|
@ -951,6 +951,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
|
|||
]
|
||||
default_gai_errnos = [
|
||||
('EAI_AGAIN', -3),
|
||||
('EAI_FAIL', -4),
|
||||
('EAI_NONAME', -2),
|
||||
('EAI_NODATA', -5),
|
||||
# Encountered when trying to resolve IPv6-only hostnames
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue