From f86ef3dd513d5197e7a7adb148f3ddea12042f80 Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Tue, 29 Apr 2025 11:45:48 -0700 Subject: [PATCH] get back python-dotenv errors for environment env file --- reflex/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/config.py b/reflex/config.py index 541ea492cc3..32b12cec2a8 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -55,7 +55,7 @@ def _load_dotenv_from_str(env_files: str) -> None: if load_dotenv is None: console.error( - """The `python-dotenv` package is required to load environment variables from a file. Run `pip install "python-dotenv>=1.0.1"`.""" + """The `python-dotenv` package is required to load environment variables from a file. Run `pip install "python-dotenv>=1.1.0"`.""" ) return @@ -68,7 +68,7 @@ def _load_dotenv_from_str(env_files: str) -> None: # Load the env files at import time if they are set in the ENV_FILE environment variable. -if load_dotenv is not None and (env_files := os.getenv("ENV_FILE")): +if env_files := os.getenv("ENV_FILE"): _load_dotenv_from_str(env_files)