diff options
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index 3d3164e..27a9e01 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -332,10 +332,7 @@ class HTTPConnection: if port is None: i = host.find(':') if i >= 0: - try: - port = int(host[i+1:]) - except ValueError, msg: - raise socket.error, str(msg) + port = int(host[i+1:]) host = host[:i] else: port = self.default_port |