Skip to content

Commit

Permalink
try verbose dotenv import
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Aug 26, 2024
1 parent 3d9c80f commit e72eed9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions solara/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
from .util import get_solara_home

try:
import dotenv
import importlib
dotenv = importlib.import_module('dotenv')
except ImportError:
pass
print("dotenv module not installed.")
except Exception as e:
print(f"Other import error: {e}")
else:
dotenv.load_dotenv()

Expand Down

0 comments on commit e72eed9

Please sign in to comment.