From 91fd3a61f53b13dd6769277642112a88ee153d03 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 31 Jan 2021 18:05:34 +0100 Subject: [PATCH] handle urlerror timeout --- oml/nodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oml/nodes.py b/oml/nodes.py index 85ee9b7..7487ca3 100644 --- a/oml/nodes.py +++ b/oml/nodes.py @@ -448,6 +448,9 @@ class Node(Thread): except socket.timeout: logger.debug('timeout %s', url) return False + except urllib.error.URLError as e: + logger.debug('urllib.error.URLError %s', e) + return False except socks.GeneralProxyError: logger.debug('download failed %s', url) return False