From 10cf46b4a92882fa6c8869bbbf4eb858b1e9ee8f Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sat, 25 May 2024 15:01:17 +0200 Subject: [PATCH] try few things --- cognee/config.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cognee/config.py b/cognee/config.py index 5935522cf..a0b28aa88 100644 --- a/cognee/config.py +++ b/cognee/config.py @@ -16,7 +16,10 @@ def load_dontenv(): dotenv_path = base_dir / ".env" load_dotenv(dotenv_path=dotenv_path, override = True) -load_dontenv() +try: + load_dontenv() +except: + pass @dataclass class Config: @@ -138,7 +141,10 @@ class Config: def load(self): """Loads the configuration from a file or environment variables.""" - load_dontenv() + try: + load_dontenv() + except: + pass config = configparser.ConfigParser() config.read(self.config_path)