summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/windows/funcs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/windows/funcs.py b/poezio/windows/funcs.py
index cc48ffab..8fbeafe2 100644
--- a/poezio/windows/funcs.py
+++ b/poezio/windows/funcs.py
@@ -42,7 +42,7 @@ def parse_attrs(text, previous=None):
attrs.append('u')
elif attr_char == 'b':
attrs.append('b')
- if attr_char in string.digits and attr_char != '':
+ if attr_char in string.digits and attr_char:
color_str = text[next_attr_char+1:text.find('}', next_attr_char)]
if color_str:
attrs.append(color_str + '}')