mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 19:49:32 +02:00
Report bad choice values when parsing config
This commit is contained in:
@@ -102,7 +102,7 @@ class Choice:
|
||||
def __call__(self, x: str) -> str:
|
||||
x = x.lower()
|
||||
if x not in self.all_choices:
|
||||
x = self.defval
|
||||
raise ValueError(f'The value {x} is not a known choice')
|
||||
return x
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user