From fdad48f6130e193f6538ba721b6d61c7270543ac Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 4 Jan 2020 21:00:36 -0700 Subject: [PATCH] Fixed wk.std.color_string() --- scripts/wk/std.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/wk/std.py b/scripts/wk/std.py index e98b9d5d..97c60d4a 100644 --- a/scripts/wk/std.py +++ b/scripts/wk/std.py @@ -743,6 +743,11 @@ def color_string(strings, colors, sep=' '): except TypeError: # Assuming single element passed, convert to string strings = (str(strings),) + try: + iter(colors) + except TypeError: + # Assuming single element passed, convert to string + colors = (str(colors),) # Build new string with color escapes added for string, color in itertools.zip_longest(strings, colors):