1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-08 22:36:48 +02:00

beautify compatibility list

This commit is contained in:
Kelly Brazil
2019-11-05 17:17:07 -06:00
parent e2f926453b
commit 0bd2faa7f7

View File

@ -84,7 +84,8 @@ def errormessage(message):
def compatibility(mod_name, compatible):
if sys.platform not in compatible:
mod = mod_name.split('.')[-1]
errormessage(f'{mod} parser not compatible with your OS ({sys.platform}).\n Compatible platforms: {compatible}')
compat_list = ', '.join(compatible)
errormessage(f'{mod} parser not compatible with your OS ({sys.platform}).\n Compatible platforms: {compat_list}')
exit()