From 23ab71a99234409ae5608188d71084ed77560a74 Mon Sep 17 00:00:00 2001 From: MadcowOG Date: Wed, 4 May 2022 01:07:37 -0700 Subject: [PATCH] Cleanup --- app/request.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/request.py b/app/request.py index eb7ed68..3788e30 100644 --- a/app/request.py +++ b/app/request.py @@ -38,7 +38,6 @@ class TorError(Exception): def send_tor_signal(signal: Signal, confloc='./misc/tor/control.conf') -> bool: - try: # Try to authenticate with password. with open(confloc, "r") as conf: @@ -47,9 +46,9 @@ def send_tor_signal(signal: Signal, confloc='./misc/tor/control.conf') -> bool: secret = line conf.close() with Controller.from_port(port=9051) as c: - authenticate_password(c, password=secret) - c.signal(signal) - os.environ['TOR_AVAILABLE'] = '1' + authenticate_password(c, password=secret) + c.signal(signal) + os.environ['TOR_AVAILABLE'] = '1' return True except ( SocketError,