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:
parent
41666d897f
commit
a62391e789
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user