Fix legacy colors config sanity check in ui package

was using Python2 type 'unicode'
This commit is contained in:
J0J0 Todos 2023-10-09 10:41:58 +02:00
parent b4a5e0b3a7
commit 7ce3b417fc

View file

@ -593,7 +593,7 @@ def colorize(color_name, text):
# is successful, the color definition is a legacy definition
# and has to be converted.
try:
color_def = config["ui"]["colors"][name].get(unicode)
color_def = config["ui"]["colors"][name].get(str)
except (confuse.ConfigTypeError, NameError):
# Normal color definition (type: list of unicode).
color_def = config["ui"]["colors"][name].get(list)