From 69a35efb16150967cafdc7516175ed7267451e47 Mon Sep 17 00:00:00 2001 From: MadcowOG Date: Tue, 3 May 2022 20:52:29 -0700 Subject: [PATCH] Maybe this will fix the issue with docker? But could present issues in the future. --- app/request.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/request.py b/app/request.py index 746c831..39a2509 100644 --- a/app/request.py +++ b/app/request.py @@ -41,7 +41,7 @@ def send_tor_signal(signal: Signal) -> bool: try: # Try to authenticate with password. with Controller.from_port(port=9051) as c: - with open("./misc/tor/control.conf", "r") as conf: + with open("/opt/whoogle-search/misc/tor/control.conf", "r") as conf: for line in conf: pass secret = line @@ -49,7 +49,7 @@ def send_tor_signal(signal: Signal) -> bool: c.signal(signal) os.environ['TOR_AVAILABLE'] = '1' return True - except (SocketError, ConnectionRefusedError, ConnectionError): + except (SocketError, ConnectionRefusedError, ConnectionError, FileNotFoundError): # If password doesn't work try with cookie. try: with Controller.from_port(port=9051) as c: