"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "a2e74c59b9b7678436eb7b835f474971875fa87c"
Commit e3503d66 authored by lucasew's avatar lucasew
Browse files

backend: make dotenv optional


Signed-off-by: default avatarlucasew <lucas59356@gmail.com>
parent f079cb6b
from dotenv import load_dotenv, find_dotenv
import os import os
...@@ -14,7 +13,11 @@ from constants import ERROR_MESSAGES ...@@ -14,7 +13,11 @@ from constants import ERROR_MESSAGES
from pathlib import Path from pathlib import Path
load_dotenv(find_dotenv("../.env")) try:
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv("../.env"))
except ImportError:
print("dotenv not installed, skipping...")
#################################### ####################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment