1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00

Tiny clean-up in program() (#1135)

This commit is contained in:
Mickaël Schoentgen 2021-09-02 16:47:01 +02:00 committed by GitHub
parent 41666d897f
commit a62391e789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()