From 96857a197ca488b6702841ba5518fa3c0f94afd8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Aug 2021 11:20:01 +0530 Subject: [PATCH] Allow default theme to have no settings --- kittens/themes/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/themes/collection.py b/kittens/themes/collection.py index 5ded581ef..04ce9b512 100644 --- a/kittens/themes/collection.py +++ b/kittens/themes/collection.py @@ -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