*** /home/skip/tmp/httplib.py.~1.46~ Sat Mar 9 08:29:59 2002 --- /home/skip/tmp/httplib.py Sat Mar 9 08:29:59 2002 *************** *** 347,353 **** if port is None: i = host.find(':') if i >= 0: ! port = int(host[i+1:]) host = host[:i] else: port = self.default_port --- 347,354 ---- if port is None: i = host.find(':') if i >= 0: ! try: port = int(host[i+1:]) ! except ValueError: raise InvalidURL, "nonnumeric port" host = host[:i] else: port = self.default_port *************** *** 803,808 **** --- 804,812 ---- pass class NotConnected(HTTPException): + pass + + class InvalidURL(HTTPException): pass class UnknownProtocol(HTTPException):