Skip to content

Commit 975f979

Browse files
committed
Move dotenv warning to stderr
1 parent cf4923b commit 975f979

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Unreleased
1111
- ``send_file`` url quotes the ":" and "/" characters for more
1212
compatible UTF-8 filename support in some browsers. :issue:`3074`
1313
- Fixes for PEP451 import loaders and pytest 5.x. :issue:`3275`
14+
- Show message about dotenv on stderr instead of stdout. :issue:`3285`
1415

1516

1617
Version 1.0.3

flask/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def load_dotenv(path=None):
600600
click.secho(
601601
' * Tip: There are .env files present.'
602602
' Do "pip install python-dotenv" to use them.',
603-
fg='yellow')
603+
fg='yellow', err=True)
604604
return
605605

606606
if path is not None:

0 commit comments

Comments
 (0)