Module: deluge Branch: 1.3-stable Commit: 70047c367a47b222a154457bf9c6c1a6c501b14d
Author: Calum Lind <[email protected]> Date: Tue Dec 11 00:57:48 2012 +0000 fix error in #2085 commit 3ca886ac7ad5: value may be a tuple --- deluge/core/filtermanager.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py index 966bbe4..969a7fb 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: -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
