From 066e93cb075021ac94a0e2e6a36a34bc173ee6c0 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 5 Nov 2019 17:23:46 -0600 Subject: [PATCH] move exit() to errormessage() --- jc/jc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/jc.py b/jc/jc.py index 5a7161c4..a33ab7ba 100755 --- a/jc/jc.py +++ b/jc/jc.py @@ -79,6 +79,7 @@ def errormessage(message): ''' print(textwrap.dedent(error_string), file=sys.stderr) + exit() def compatibility(mod_name, compatible): @@ -86,7 +87,6 @@ def compatibility(mod_name, compatible): mod = mod_name.split('.')[-1] compat_list = ', '.join(compatible) errormessage(f'{mod} parser not compatible with your OS ({sys.platform}).\n Compatible platforms: {compat_list}') - exit() def main():