Fix for an Issue #644

This commit is contained in:
Miroslav Stampar 2014-03-18 16:41:05 +01:00
parent 97f603af4a
commit 97fe5e52c2

View File

@ -1000,6 +1000,10 @@ def _setHTTPProxy():
""" """
global proxyHandler global proxyHandler
for _ in ("http", "https"):
if hasattr(proxyHandler, "%s_open" % _):
delattr(proxyHandler, "%s_open" % _)
if not conf.proxy: if not conf.proxy:
if conf.proxyList: if conf.proxyList:
conf.proxy = conf.proxyList[0] conf.proxy = conf.proxyList[0]