From c768eb5b13c098319201698107e03602ac77a203 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 8bfc2671d..6b1fb60ff 100644 --- a/deluge/core/preferencesmanager.py +++ b/deluge/core/preferencesmanager.py @@ -447,8 +447,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)