This commit is contained in:
MadcowOG 2022-05-03 21:03:53 -07:00
parent 135e062b12
commit d98e436941

View File

@ -49,8 +49,12 @@ def send_tor_signal(signal: Signal) -> bool:
c.signal(signal)
os.environ['TOR_AVAILABLE'] = '1'
return True
except (SocketError, ConnectionRefusedError, ConnectionError,
FileNotFoundError):
except (
SocketError,
ConnectionRefusedError,
ConnectionError,
FileNotFoundError
):
# If password doesn't work try with cookie.
try:
with Controller.from_port(port=9051) as c: