diff --git a/platypush/plugins/torrent.py b/platypush/plugins/torrent.py index dba4ee6a..1ce22395 100644 --- a/platypush/plugins/torrent.py +++ b/platypush/plugins/torrent.py @@ -97,7 +97,7 @@ class TorrentPlugin(Plugin): results[cat] = self.categories[cat](query, *args, **kwargs) workers = [ - threading.Thread(target=worker, kwargs={'category': category}) + threading.Thread(target=worker, kwargs={'cat': category}) for category in (category or self.categories.keys()) ]