only print urlerror reason not traceback
This commit is contained in:
parent
cf3762dd7f
commit
408ab2432f
1 changed files with 3 additions and 0 deletions
|
@ -288,6 +288,9 @@ class Node(Thread):
|
|||
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
|
||||
if r.getcode() == 200:
|
||||
try:
|
||||
fileobj = r
|
||||
|
|
Loading…
Reference in a new issue