From a62391e789e1137901228b57c98eb50f2453ca01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Thu, 2 Sep 2021 16:47:01 +0200 Subject: [PATCH] Tiny clean-up in `program()` (#1135) --- httpie/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/core.py b/httpie/core.py index cf2567d4..9c9e3ce4 100644 --- a/httpie/core.py +++ b/httpie/core.py @@ -213,7 +213,7 @@ def program(args: argparse.Namespace, env: Environment) -> ExitStatus: finally: if downloader and not downloader.finished: downloader.failed() - if not isinstance(args, list) and args.output_file and args.output_file_specified: + if args.output_file and args.output_file_specified: args.output_file.close()