1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

use sys.exit(0) instead of exit()

This commit is contained in:
Kelly Brazil
2020-04-14 11:10:31 -07:00
parent c87b722aec
commit 431bd969eb

View File

@ -322,7 +322,7 @@ def magic():
valid_command, run_command = generate_magic_command(sys.argv) valid_command, run_command = generate_magic_command(sys.argv)
if valid_command: if valid_command:
os.system(run_command) os.system(run_command)
exit() sys.exit(0)
elif run_command is None: elif run_command is None:
return return
else: else:
@ -358,7 +358,7 @@ def main():
if 'a' in options: if 'a' in options:
json_out(about_jc(), pretty=pretty, mono=mono, piped_out=piped_output()) json_out(about_jc(), pretty=pretty, mono=mono, piped_out=piped_output())
exit() sys.exit(0)
if sys.stdin.isatty(): if sys.stdin.isatty():
helptext('missing piped data') helptext('missing piped data')