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
......@@ -14,7 +13,11 @@ from constants import ERROR_MESSAGES
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