fix except order
This commit is contained in:
parent
408ab2432f
commit
0c0d87cadb
1 changed files with 3 additions and 3 deletions
|
@ -285,12 +285,12 @@ class Node(Thread):
|
|||
except socks.GeneralProxyError:
|
||||
logger.debug('openurl failed %s', url)
|
||||
return False
|
||||
except:
|
||||
logger.debug('openurl failed %s', url, exc_info=True)
|
||||
return False
|
||||
except urllib.error.URLError as e:
|
||||
logger.debug('openurl failed urllib2.URLError %s', e.reason)
|
||||
return False
|
||||
except:
|
||||
logger.debug('openurl failed %s', url, exc_info=True)
|
||||
return False
|
||||
if r.getcode() == 200:
|
||||
try:
|
||||
fileobj = r
|
||||
|
|
Loading…
Reference in a new issue