mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
fix error in #2085 commit 3ca886ac7ad5: value may be a tuple
This commit is contained in:
parent
c556613b9f
commit
3bf023e4df
@ -153,7 +153,7 @@ class FilterManager(component.Component):
|
||||
|
||||
#sanitize input: filter-value must be a list of strings
|
||||
for key, value in filter_dict.items():
|
||||
if not isinstance(value, list):
|
||||
if isinstance(value, basestring):
|
||||
filter_dict[key] = [value]
|
||||
|
||||
if "id"in filter_dict: #optimized filter for id:
|
||||
|
Loading…
x
Reference in New Issue
Block a user