diff --git a/logbot.py b/logbot.py index b7cc694..3bc5dd1 100755 --- a/logbot.py +++ b/logbot.py @@ -198,6 +198,8 @@ def replace_color(code, text): '36': '00aaaa', '37': 'F5F1DE', } + if code not in colors: + return text return '%(text)s' % dict( color = colors[code], text = text,