Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chat.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/chat.py b/chat.py
index c9ee48a..91e7e27 100644
--- a/chat.py
+++ b/chat.py
@@ -196,7 +196,10 @@ class Chat(Activity):
else:
nick = buddy.props.nick
color = buddy.props.color
- color_stroke, color_fill = color.split(',')
+ try:
+ color_stroke, color_fill = color.split(',')
+ except ValueError:
+ color_stroke, color_fill = ('#000000', '#FFFFFF')
color_stroke = Color(color_stroke).get_int()
color_fill = Color(color_fill).get_int()
text_color = COLOR_WHITE.get_int()