Skip to content

Commit

Permalink
Fix bug which causes a crash if palette is not in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Jan 2, 2024
1 parent 081bc04 commit 964efc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toot/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def get_default_map():

# TODO: remove in version 1.0
tui_old = settings.get("tui", {}).copy()
del tui_old["palette"]
if "palette" in tui_old:
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].")
Expand Down

0 comments on commit 964efc5

Please # to comment.