Fix option exception

This commit is contained in:
WQY\qiong
2022-11-19 00:05:16 +08:00
parent d73b90c20a
commit 32ade1ed5f

View File

@@ -111,6 +111,13 @@ def inp_in_option(section: list[str]) -> ChangeSet:
if s.startswith(';'):
continue
tokens = s.strip().split()
if tokens[0].upper() == 'QUALITY':
value = tokens[1]
if len(tokens) > 2:
value += f' {tokens[2]}'
cs |= { 'QUALITY' : value }
else:
line = s.upper().strip()
for key in get_option_schema('').keys():
if line.startswith(key):