mirror of
https://github.com/logos-storage/deluge.git
synced 2026-01-20 14:03:06 +00:00
Console: Fix test for empty color string
This commit is contained in:
parent
0a6c2ee147
commit
bafd0209af
@ -165,7 +165,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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user