Added message about tor unavailability.

This commit is contained in:
MadcowOG 2022-05-03 22:05:42 -07:00
parent d98e436941
commit e1d6ed23f8

View File

@ -64,6 +64,10 @@ def send_tor_signal(signal: Signal) -> bool:
os.environ['TOR_AVAILABLE'] = '1'
except (SocketError, ConnectionRefusedError, ConnectionError):
os.environ['TOR_AVAILABLE'] = '0'
print(
"Unable to authenticate with tor control port." +
"Tor will be unavailable."
)
return False