Skip to content

Commit

Permalink
Merge pull request #3285 from ThiefMaster/dotenv-msg-stderr
Browse files Browse the repository at this point in the history
Move dotenv warning to stderr
  • Loading branch information
davidism committed Jul 3, 2019
2 parents cf4923b + 975f979 commit c074759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -11,6 +11,7 @@ Unreleased
- ``send_file`` url quotes the ":" and "/" characters for more
compatible UTF-8 filename support in some browsers. :issue:`3074`
- Fixes for PEP451 import loaders and pytest 5.x. :issue:`3275`
- Show message about dotenv on stderr instead of stdout. :issue:`3285`


Version 1.0.3
Expand Down
2 changes: 1 addition & 1 deletion flask/cli.py
Expand Up @@ -600,7 +600,7 @@ def load_dotenv(path=None):
click.secho(
' * Tip: There are .env files present.'
' Do "pip install python-dotenv" to use them.',
fg='yellow')
fg='yellow', err=True)
return

if path is not None:
Expand Down

0 comments on commit c074759

Please sign in to comment.