From 82aee0448cb6821c55c3275a8b069a287751b34c Mon Sep 17 00:00:00 2001 From: MadcowOG Date: Thu, 5 May 2022 23:06:29 -0700 Subject: [PATCH] Small change --- app/request.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/request.py b/app/request.py index 5b2beaf..e3ff951 100644 --- a/app/request.py +++ b/app/request.py @@ -52,6 +52,7 @@ def send_tor_signal(signal: Signal) -> bool: with Controller.from_port(port=9051) as c: if use_pass: with open(confloc, "r") as conf: + # Scan for the last line of the file. for line in conf: pass secret = line @@ -64,7 +65,8 @@ def send_tor_signal(signal: Signal) -> bool: return True except (SocketError, ConnectionRefusedError, ConnectionError): os.environ['TOR_AVAILABLE'] = '0' - return False + + return False def gen_user_agent(is_mobile) -> str: