diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2021-03-27 16:55:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-27 16:55:08 +0100 |
| commit | 71a5d4772a64891223b30eda1d97deea5f8926e0 (patch) | |
| tree | d1860da4fa0e4b6b46a0c47d377a2342f5a3a9dd /lib/threads | |
| parent | 2ccdd5cc8dd16cc5a9b8883466a2034caa81ac08 (diff) | |
Catch Palette IndexError (#1100)
* thread palette catch indexerror
* export threadlist with utf-8
Diffstat (limited to 'lib/threads')
| -rw-r--r-- | lib/threads/palette.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
