update for that invalid target url Otavio Augusto reported

This commit is contained in:
Miroslav Stampar
2010-02-10 12:06:23 +00:00
parent 203cfd114f
commit cef248a5ea
2 changed files with 10 additions and 2 deletions

View File

@@ -609,7 +609,10 @@ def __setHTTPProxy():
__port = None
if len(__hostnamePort) == 2:
__port = int(__hostnamePort[1])
try:
__port = int(__hostnamePort[1])
except:
pass #drops into the next check block
if not __scheme or not __hostname or not __port:
errMsg = "proxy value must be in format 'http://url:port'"