Force str for proxy settings

This commit is contained in:
Andrew Resch 2009-02-28 17:17:40 +00:00
parent 7a6be9df1e
commit 4eb175ae9c

View File

@ -465,9 +465,9 @@ class PreferencesManager(component.Component):
if v["type"]:
proxy_settings = lt.proxy_settings()
proxy_settings.type = lt.proxy_type(v["type"])
proxy_settings.username = v["username"]
proxy_settings.password = v["password"]
proxy_settings.hostname = v["hostname"]
proxy_settings.username = str(v["username"])
proxy_settings.password = str(v["password"])
proxy_settings.hostname = str(v["hostname"])
proxy_settings.port = v["port"]
log.debug("setting %s proxy settings", k)
getattr(self.session, "set_%s_proxy" % k)(proxy_settings)