s/exc_info=1/exc_info=True/g

This commit is contained in:
j 2016-01-24 14:43:03 +05:30
commit d70bd8797a
14 changed files with 28 additions and 28 deletions

View file

@ -156,7 +156,7 @@ class Tor(object):
if self.daemon:
self.daemon.shutdown()
except:
logger.debug('shutdown exception', exc_info=1)
logger.debug('shutdown exception', exc_info=True)
pass
self.connected = False
@ -196,7 +196,7 @@ class Tor(object):
try:
self.controller.remove_hidden_service(self.dir)
except:
logger.debug('self.controller.remove_hidden_service fail', exc_info=1)
logger.debug('self.controller.remove_hidden_service fail', exc_info=True)
state.online = False
def is_online(self):
@ -281,7 +281,7 @@ def install_tor():
subprocess.call([desktop, '--register-app'], cwd=os.path.dirname(desktop))
os.unlink(tar_file)
except:
logger.debug('tor installation failed', exc_info=1)
logger.debug('tor installation failed', exc_info=True)
elif sys.platform == 'darwin':
ox.makedirs(target)
dmg = os.path.join(target, os.path.basename(url))
@ -300,6 +300,6 @@ def install_tor():
subprocess.call(['hdiutil', 'unmount', volume])
os.unlink(dmg)
except:
logger.debug('tor installation failed', exc_info=1)
logger.debug('tor installation failed', exc_info=True)
else:
logger.debug('no way to install TorBrowser on %s so far', sys.platform)