handle urlerror timeout

This commit is contained in:
j 2021-01-31 18:05:34 +01:00
parent ab7863807b
commit 91fd3a61f5

View file

@ -448,6 +448,9 @@ class Node(Thread):
except socket.timeout: except socket.timeout:
logger.debug('timeout %s', url) logger.debug('timeout %s', url)
return False return False
except urllib.error.URLError as e:
logger.debug('urllib.error.URLError %s', e)
return False
except socks.GeneralProxyError: except socks.GeneralProxyError:
logger.debug('download failed %s', url) logger.debug('download failed %s', url)
return False return False