Allow default theme to have no settings

This commit is contained in:
Kovid Goyal 2021-08-05 11:20:01 +05:30
parent 079ff7785c
commit 96857a197c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -154,7 +154,7 @@ def parse_theme(fname: str, raw: str) -> Dict[str, Any]:
if is_dark:
ans['is_dark'] = True
ans['num_settings'] = len(conf) - len(parse_config(()))
if ans['num_settings'] < 1:
if ans['num_settings'] < 1 and fname != 'default.conf':
raise SystemExit(f'The theme {fname} has no settings')
return ans