Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no more warnings on palette entries in config #1310

Merged
merged 2 commits into from
Oct 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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