forked from extern/httpie-cli
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:
|
finally:
|
||||||
if downloader and not downloader.finished:
|
if downloader and not downloader.finished:
|
||||||
downloader.failed()
|
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()
|
args.output_file.close()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user