From 33fabe7590b7655d21dd58ada4dbcbfc106a093e Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Mon, 2 Jul 2018 00:47:35 +0500 Subject: [PATCH] ignore no route to host error --- mtprotoproxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index d6ce3ee..c569aa7 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -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