Fix error when sending stats (quote_plus expects string not list).

This commit is contained in:
John Garland 2009-06-24 02:35:24 +00:00
parent 39063b872b
commit c768eb5b13

View file

@ -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)