From 71a5d4772a64891223b30eda1d97deea5f8926e0 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 27 Mar 2021 16:55:08 +0100 Subject: Catch Palette IndexError (#1100) * thread palette catch indexerror * export threadlist with utf-8 --- lib/threads/palette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/threads') diff --git a/lib/threads/palette.py b/lib/threads/palette.py index c5e3002c..de7ed6f0 100644 --- a/lib/threads/palette.py +++ b/lib/threads/palette.py @@ -57,7 +57,7 @@ class ThreadPalette(Set): thread = ThreadColor(thread_color, thread_name, thread_number, manufacturer=self.name) self.threads[thread] = convert_color(sRGBColor(*thread_color, is_upscaled=True), LabColor) - except ValueError: + except (ValueError, IndexError): continue def __contains__(self, thread): -- cgit v1.2.3