Merge branch 'warn_invalid_config' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-03-15 11:05:49 +05:30
commit 4b08ce2a09
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -60,7 +60,9 @@ def parse_line(line, type_map, special_handling, ans, all_keys, base_path_for_in
if not line or line.startswith('#'):
return
m = key_pat.match(line)
if m is not None:
if m is None:
log_error('Ignoring invalid config line: {}'.format(line))
return
key, val = m.groups()
if special_handling(key, val, ans):
return