1
0
mirror of https://github.com/httpie/cli.git synced 2025-07-17 01:42:46 +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

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