fix debug exc_info
This commit is contained in:
parent
597e9c92ca
commit
c8dc68bf64
1 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,7 @@ class Node(Thread):
|
||||||
try:
|
try:
|
||||||
r = self._opener.open(url, timeout=self.TIMEOUT*2)
|
r = self._opener.open(url, timeout=self.TIMEOUT*2)
|
||||||
except:
|
except:
|
||||||
logger.debug('openurl failed %s', url, exec_info=1)
|
logger.debug('openurl failed %s', url, exc_info=1)
|
||||||
return False
|
return False
|
||||||
if r.getcode() == 200:
|
if r.getcode() == 200:
|
||||||
try:
|
try:
|
||||||
|
@ -337,7 +337,7 @@ class Node(Thread):
|
||||||
logger.debug('SPEED %s', ox.format_bits(self.download_speed))
|
logger.debug('SPEED %s', ox.format_bits(self.download_speed))
|
||||||
return item.save_file(content)
|
return item.save_file(content)
|
||||||
except:
|
except:
|
||||||
logger.debug('download failed %s', url, exec_info=1)
|
logger.debug('download failed %s', url, exc_info=1)
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
logger.debug('FAILED %s', url)
|
logger.debug('FAILED %s', url)
|
||||||
|
|
Loading…
Reference in a new issue