fixed readme formatting and added two excepts for the mode modifier

This commit is contained in:
deadvey
2026-03-29 20:15:20 +01:00
parent 0b0baf21b2
commit 7f49d241d8
2 changed files with 16 additions and 14 deletions

View File

@@ -11,8 +11,10 @@ def handle_arguments(arguments, config):
config['mode'] = arguments[index+2]
try:
config['mode_modifier'] = int(arguments[index+3])
except:
except ValueError:
config['mode_modifier'] = arguments[index+3]
except IndexError:
config.pop('mode_modifier',None)
case '--list-languages'|'-i':
languages = os.listdir('languages')
for lang in languages: