diff --git a/src/khoj/main.py b/src/khoj/main.py index 84815b63..4bdd9093 100644 --- a/src/khoj/main.py +++ b/src/khoj/main.py @@ -2,6 +2,12 @@ import os import signal import sys + +if sys.stdout is None: + sys.stdout = open(os.devnull, "w") +if sys.stderr is None: + sys.stderr = open(os.devnull, "w") + import logging import threading import warnings