handle urlerror timeout
This commit is contained in:
parent
ab7863807b
commit
91fd3a61f5
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue