Browse Source

[fix] is_werkzeug_reload_active is not realted to python -m

Werkzeug's reloader is not active when was server is launched by::

    python -m searx.webapp

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 1 month ago
parent
commit
3392beb914
1 changed files with 0 additions and 5 deletions
  1. 0 5
      searx/webapp.py

+ 0 - 5
searx/webapp.py

@@ -1383,11 +1383,6 @@ def is_werkzeug_reload_active() -> bool:
         if "--reload" in sys.argv or "--debug" in sys.argv:
             return True
 
-    elif frames[0].filename.endswith('searx/webapp.py'):
-        # server was launched by "python -m searx.webapp" / see run()
-        if searx.sxng_debug:
-            return True
-
     return False