Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97fe5e5

Browse files
committed
Fix for an Issue #644
1 parent 97f603a commit 97fe5e5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,10 @@ def _setHTTPProxy():
10001000
"""
10011001
global proxyHandler
10021002

1003+
for _ in ("http", "https"):
1004+
if hasattr(proxyHandler, "%s_open" % _):
1005+
delattr(proxyHandler, "%s_open" % _)
1006+
10031007
if not conf.proxy:
10041008
if conf.proxyList:
10051009
conf.proxy = conf.proxyList[0]

0 commit comments

Comments
 (0)