From a3268dd403b7107c90f275fc458939a99f8be36d Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 27 Mar 2012 01:49:10 +0100 Subject: [PATCH] Console: Fix test for empty color string --- deluge/ui/console/colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/colors.py b/deluge/ui/console/colors.py index 2dd5039fe..0f0cf2f71 100644 --- a/deluge/ui/console/colors.py +++ b/deluge/ui/console/colors.py @@ -199,7 +199,7 @@ def parse_color_string(s, encoding="UTF-8"): # Get a list of attributes in the bracketed section attrs = s[begin+2:end].split(",") - if len(attrs) == 1 and not attrs: + if len(attrs) == 1 and not attrs[0].strip(' '): raise BadColorString("No description in {! !}") def apply_attrs(cp, a):