Added message about tor unavailability.
This commit is contained in:
parent
d98e436941
commit
e1d6ed23f8
|
@ -64,6 +64,10 @@ def send_tor_signal(signal: Signal) -> bool:
|
||||||
os.environ['TOR_AVAILABLE'] = '1'
|
os.environ['TOR_AVAILABLE'] = '1'
|
||||||
except (SocketError, ConnectionRefusedError, ConnectionError):
|
except (SocketError, ConnectionRefusedError, ConnectionError):
|
||||||
os.environ['TOR_AVAILABLE'] = '0'
|
os.environ['TOR_AVAILABLE'] = '0'
|
||||||
|
print(
|
||||||
|
"Unable to authenticate with tor control port." +
|
||||||
|
"Tor will be unavailable."
|
||||||
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user