Rev4208, Add details on Tor connection error
This commit is contained in:
parent
e6b8097b43
commit
2de35266c4
2 changed files with 3 additions and 2 deletions
|
@ -13,7 +13,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.7.1"
|
||||
self.rev = 4206
|
||||
self.rev = 4208
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.pending_changes = {}
|
||||
|
|
|
@ -38,6 +38,7 @@ class TorManager(object):
|
|||
self.lock = RLock()
|
||||
self.starting = True
|
||||
self.connecting = True
|
||||
self.status = None
|
||||
self.event_started = gevent.event.AsyncResult()
|
||||
|
||||
if config.tor == "disable":
|
||||
|
@ -64,7 +65,7 @@ class TorManager(object):
|
|||
self.starting = True
|
||||
try:
|
||||
if not self.connect():
|
||||
raise Exception("No connection")
|
||||
raise Exception(self.status)
|
||||
self.log.debug("Tor proxy port %s check ok" % config.tor_proxy)
|
||||
except Exception as err:
|
||||
if sys.platform.startswith("win") and os.path.isfile(self.tor_exe):
|
||||
|
|
Loading…
Reference in a new issue