mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 11:02:43 +01:00
Fix legacy colors config sanity check in ui package
was using Python2 type 'unicode'
This commit is contained in:
parent
b4a5e0b3a7
commit
7ce3b417fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue