From 03035c31a0ef0ccc17f1ed8719ecb10811f83afb Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Tue, 2 Jan 2024 21:02:38 +0100 Subject: [PATCH] Fix warning --- toot/cli/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toot/cli/__init__.py b/toot/cli/__init__.py index 21f4002..5cc995b 100644 --- a/toot/cli/__init__.py +++ b/toot/cli/__init__.py @@ -48,8 +48,8 @@ def get_default_map(): commands = settings.get("commands", {}) # TODO: remove in version 1.0 - tui_old = settings.get("tui", {}) - + tui_old = settings.get("tui", {}).copy() + del tui_old["palette"] if tui_old: # TODO: don't show the warning for [toot.palette] print_warning("Settings section [tui] has been deprecated in favour of [commands.tui].")