mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-13 01:20:24 +02:00
move exit() to errormessage()
This commit is contained in:
2
jc/jc.py
2
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():
|
||||
|
Reference in New Issue
Block a user