Skip to content

Commit c1fb194

Browse files
authored
get back python-dotenv errors for environment env file (#5203)
1 parent 70ab9dc commit c1fb194

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reflex/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _load_dotenv_from_str(env_files: str) -> None:
5555

5656
if load_dotenv is None:
5757
console.error(
58-
"""The `python-dotenv` package is required to load environment variables from a file. Run `pip install "python-dotenv>=1.0.1"`."""
58+
"""The `python-dotenv` package is required to load environment variables from a file. Run `pip install "python-dotenv>=1.1.0"`."""
5959
)
6060
return
6161

@@ -68,7 +68,7 @@ def _load_dotenv_from_str(env_files: str) -> None:
6868

6969

7070
# Load the env files at import time if they are set in the ENV_FILE environment variable.
71-
if load_dotenv is not None and (env_files := os.getenv("ENV_FILE")):
71+
if env_files := os.getenv("ENV_FILE"):
7272
_load_dotenv_from_str(env_files)
7373

7474

0 commit comments

Comments
 (0)