Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().

This commit is contained in:
Antoine Pitrou 2011-01-08 10:28:11 +00:00
parent 83b1ab0d6a
commit 5d938cb366
1 changed files with 1 additions and 0 deletions

View File

@ -800,6 +800,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
default_errnos = [
('ECONNREFUSED', 111),
('ECONNRESET', 104),
('EHOSTUNREACH', 113),
('ENETUNREACH', 101),
('ETIMEDOUT', 110),
]