From 70047c367a47b222a154457bf9c6c1a6c501b14d Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 11 Dec 2012 00:57:48 +0000 Subject: [PATCH] fix error in #2085 commit 3ca886ac7ad5: value may be a tuple --- deluge/core/filtermanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py index 966bbe4c3..969a7fb5e 100644 --- a/deluge/core/filtermanager.py +++ b/deluge/core/filtermanager.py @@ -126,7 +126,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: