We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70ab9dc commit c1fb194Copy full SHA for c1fb194
1 file changed
reflex/config.py
@@ -55,7 +55,7 @@ def _load_dotenv_from_str(env_files: str) -> None:
55
56
if load_dotenv is None:
57
console.error(
58
- """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"`."""
59
)
60
return
61
@@ -68,7 +68,7 @@ def _load_dotenv_from_str(env_files: str) -> None:
68
69
70
# 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")):
+if env_files := os.getenv("ENV_FILE"):
72
_load_dotenv_from_str(env_files)
73
74
0 commit comments