From 0b46a496ee688e2137a97828ff58c58dfc03fa04 Mon Sep 17 00:00:00 2001 From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Fri, 24 Dec 2021 22:21:11 -0500 Subject: [PATCH] --code is special and shouldn't be touched --- src/black/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/black/__init__.py b/src/black/__init__.py index fedebb3f691..67122f01f0c 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -495,7 +495,8 @@ def main( ) if verbose or not quiet: - out() + if code is None: + out() out(error_msg if report.return_code else "All done! ✨ 🍰 ✨") if code is None: click.echo(str(report), err=True)