From 75fb279dde29ee61ab70a0f4a9c2319cc84b49e0 Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Sun, 29 Oct 2023 14:32:57 +0100 Subject: [PATCH 1/2] no more warnings on palette entries in config --- khal/settings/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/khal/settings/settings.py b/khal/settings/settings.py index 2b0cdebbe..15c0bbd5d 100644 --- a/khal/settings/settings.py +++ b/khal/settings/settings.py @@ -153,6 +153,10 @@ 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( From a28ab3af2ef96d86791cd1586bd70ab4c339b7d7 Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Sun, 29 Oct 2023 14:33:04 +0100 Subject: [PATCH 2/2] remove deprecate warning for default command We removed the default command several years ago, 99% of users should have migrated by now. --- khal/settings/settings.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/khal/settings/settings.py b/khal/settings/settings.py index 15c0bbd5d..eaedfdbca 100644 --- a/khal/settings/settings.py +++ b/khal/settings/settings.py @@ -161,12 +161,6 @@ def get_config( 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