ignore no route to host error

This commit is contained in:
Alexander Bersenev
2018-07-02 00:47:35 +05:00
parent c0ed5e1e38
commit 33fabe7590

View File

@@ -1066,7 +1066,8 @@ def loop_exception_handler(loop, context):
return
if isinstance(exception, OSError):
IGNORE_ERRNO = {
10038 # operation on non-socket on Windows, likely because fd == -1
10038, # operation on non-socket on Windows, likely because fd == -1
113 # no route to host
}
if exception.errno in IGNORE_ERRNO:
return