From 431bd969eb4809424fe99a02a7decb98bce9ea51 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 14 Apr 2020 11:10:31 -0700 Subject: [PATCH] use sys.exit(0) instead of exit() --- jc/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index 3feee9bc..d5123b0d 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -322,7 +322,7 @@ def magic(): valid_command, run_command = generate_magic_command(sys.argv) if valid_command: os.system(run_command) - exit() + sys.exit(0) elif run_command is None: return else: @@ -358,7 +358,7 @@ def main(): if 'a' in options: json_out(about_jc(), pretty=pretty, mono=mono, piped_out=piped_output()) - exit() + sys.exit(0) if sys.stdin.isatty(): helptext('missing piped data')