Passed?
This commit is contained in:
parent
135e062b12
commit
d98e436941
|
@ -49,8 +49,12 @@ def send_tor_signal(signal: Signal) -> bool:
|
||||||
c.signal(signal)
|
c.signal(signal)
|
||||||
os.environ['TOR_AVAILABLE'] = '1'
|
os.environ['TOR_AVAILABLE'] = '1'
|
||||||
return True
|
return True
|
||||||
except (SocketError, ConnectionRefusedError, ConnectionError,
|
except (
|
||||||
FileNotFoundError):
|
SocketError,
|
||||||
|
ConnectionRefusedError,
|
||||||
|
ConnectionError,
|
||||||
|
FileNotFoundError
|
||||||
|
):
|
||||||
# If password doesn't work try with cookie.
|
# If password doesn't work try with cookie.
|
||||||
try:
|
try:
|
||||||
with Controller.from_port(port=9051) as c:
|
with Controller.from_port(port=9051) as c:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user