mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +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)
|
print(textwrap.dedent(error_string), file=sys.stderr)
|
||||||
|
exit()
|
||||||
|
|
||||||
|
|
||||||
def compatibility(mod_name, compatible):
|
def compatibility(mod_name, compatible):
|
||||||
@ -86,7 +87,6 @@ def compatibility(mod_name, compatible):
|
|||||||
mod = mod_name.split('.')[-1]
|
mod = mod_name.split('.')[-1]
|
||||||
compat_list = ', '.join(compatible)
|
compat_list = ', '.join(compatible)
|
||||||
errormessage(f'{mod} parser not compatible with your OS ({sys.platform}).\n Compatible platforms: {compat_list}')
|
errormessage(f'{mod} parser not compatible with your OS ({sys.platform}).\n Compatible platforms: {compat_list}')
|
||||||
exit()
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Reference in New Issue
Block a user