From 139519d7d1b0f24e1bc7e39c99ae78d604415765 Mon Sep 17 00:00:00 2001 From: John Garland Date: Wed, 24 Jun 2009 02:35:24 +0000 Subject: [PATCH] Fix error when sending stats (quote_plus expects string not list). --- deluge/core/preferencesmanager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/core/preferencesmanager.py b/deluge/core/preferencesmanager.py index b57b73bdc..fc1cd8fc9 100644 --- a/deluge/core/preferencesmanager.py +++ b/deluge/core/preferencesmanager.py @@ -458,8 +458,9 @@ class PreferencesManager(component.Component): url = "http://deluge-torrent.org/stats_get.php?processor=" + \ platform.machine() + "&python=" + platform.python_version() \ + "&deluge=" + deluge.common.get_version() \ - + "&os=" + platform.system() \ - + "&plugins=" + quote_plus(self.config["enabled_plugins"]) + + "&os=" + platform.system() + for plugin in self.config["enabled_plugins"]: + url += "&plugins=" + quote_plus(plugin) urlopen(url) except IOError, e: log.debug("Network error while trying to send info: %s", e)