From d8d6d579dc2352f4d4fc09a8beaa8b585b6f0aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Br=C3=BCckner?= Date: Wed, 12 Aug 2020 12:13:08 +0200 Subject: [PATCH] fix #149 introduced in #147 --- src/wireviz/wv_colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wireviz/wv_colors.py b/src/wireviz/wv_colors.py index 40e45999..eb3b106e 100644 --- a/src/wireviz/wv_colors.py +++ b/src/wireviz/wv_colors.py @@ -120,7 +120,7 @@ def get_color_hex(input, pad=False): padded = input try: - output = [_color_hex[padded[i:i + 2]] for i in range(0, len(input), 2)] + output = [_color_hex[padded[i:i + 2]] for i in range(0, len(padded), 2)] except KeyError: print(f'Unknown color specified: {input}') output = [color_default]