-
-
Notifications
You must be signed in to change notification settings - Fork 16.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load_dotenv returns true even if no file exists #2937
Comments
IMO, it's a default behavior of >>> from dotenv import load_dotenv
>>> load_dotenv('nothing')
>>> True |
That's true, but the docstring promises a different thing: Line 587 in d7eea1b
|
I was in fact referring to that promise. As a side note, I think that it also make sense, but this is just a personal opinion. |
Maybe we can change this line to something like " |
…v-return-value Fix #2937: Ensure the consistency in load_dotenv's return type
Expected Behavior
If no file is loaded/exists,
flask.cli.load_dotenv
should return False.Actual Behavior
This code:
does not fail.
Environment
The text was updated successfully, but these errors were encountered: