diff --git a/Tools/pynche/ColorDB.py b/Tools/pynche/ColorDB.py index 359e2d8670c..6fa557768a5 100644 --- a/Tools/pynche/ColorDB.py +++ b/Tools/pynche/ColorDB.py @@ -78,7 +78,8 @@ class ColorDB: # inefficient! nearest = -1 nearest_name = '' - for name, (r, g, b, rrggbb) in self.__byname.items(): + for name, aliases in self.__byrrggbb.values(): + r, g, b, rrggbb = self.__byname[name] rdelta = red - r gdelta = green - g bdelta = blue - b