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:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue