mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-22 04:25:55 -04:00
Fix bug which causes a crash if palette is not in settings
This commit is contained in:
parent
081bc0459e
commit
964efc5b4c
@ -49,7 +49,8 @@ def get_default_map():
|
|||||||
|
|
||||||
# TODO: remove in version 1.0
|
# TODO: remove in version 1.0
|
||||||
tui_old = settings.get("tui", {}).copy()
|
tui_old = settings.get("tui", {}).copy()
|
||||||
del tui_old["palette"]
|
if "palette" in tui_old:
|
||||||
|
del tui_old["palette"]
|
||||||
if tui_old:
|
if tui_old:
|
||||||
# TODO: don't show the warning for [toot.palette]
|
# TODO: don't show the warning for [toot.palette]
|
||||||
print_warning("Settings section [tui] has been deprecated in favour of [commands.tui].")
|
print_warning("Settings section [tui] has been deprecated in favour of [commands.tui].")
|
||||||
|
Loading…
Reference in New Issue
Block a user