mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Console: Fix test for empty color string
This commit is contained in:
parent
b34e38df57
commit
a3268dd403
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue