From 975f9792697c1a74bca3cfff201d1e0415bece6a Mon Sep 17 00:00:00 2001 From: ThiefMaster Date: Wed, 3 Jul 2019 15:04:23 +0200 Subject: [PATCH] Move dotenv warning to stderr --- CHANGES.rst | 1 + flask/cli.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index c777f7d09b..0d03fb6dcd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 diff --git a/flask/cli.py b/flask/cli.py index fd00087824..8da728c9ba 100644 --- a/flask/cli.py +++ b/flask/cli.py @@ -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: