Skip to content

Commit

Permalink
Merge pull request #1310 from pimutils/fix/warning_extra_palette_entries
Browse files Browse the repository at this point in the history
no more warnings on palette entries in config
  • Loading branch information
geier authored Oct 29, 2023
2 parents 8f01f31 + a28ab3a commit ae33ad3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions khal/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,14 @@ def get_config(
for section, value in extras:
if section == ():
logger.warning(f'unknown section "{value}" in config file')
elif section == ('palette',):
# we don't validate the palette section, because there is no way to
# automatically extract valid attributes from the ui module
continue
else:
section = sectionize(section)
logger.warning(
f'unknown key or subsection "{value}" in section "{section}"')

deprecated = [{'value': 'default_command', 'section': 'default'}]
for d in deprecated:
if (value == d['value']) and (section == d['section']):
logger.warning(f'Key "{value}" in section "{section}" was '
'deprecated. See the FAQ to find out when and why!')
return user_config


Expand Down

0 comments on commit ae33ad3

Please sign in to comment.