Skip to content

Commit 076dddb

Browse files
committed
Fixed 2823
1 parent 673e5af commit 076dddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def load_dotenv(path=None):
584584
.. versionadded:: 1.0
585585
"""
586586
if dotenv is None:
587-
if path or os.path.exists('.env') or os.path.exists('.flaskenv'):
587+
if path or os.path.isfile('.env') or os.path.isfile('.flaskenv'):
588588
click.secho(
589589
' * Tip: There are .env files present.'
590590
' Do "pip install python-dotenv" to use them.',

0 commit comments

Comments
 (0)