From 3bf798e7a4413a89aff41ae98461182bf9709005 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 31 Jul 2004 00:47:08 +0000 Subject: [PATCH] Removed useless try/except block. --- src/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils.py b/src/utils.py index 4da14af10..b2e99c2f2 100755 --- a/src/utils.py +++ b/src/utils.py @@ -562,10 +562,7 @@ def getSocket(host): """Returns a socket of the correct AF_INET type (v4 or v6) in order to communicate with host. """ - try: - host = socket.gethostbyname(host) - except socket.error: - raise + host = socket.gethostbyname(host) if isIP(host): return socket.socket(socket.AF_INET, socket.SOCK_STREAM) elif isIPV6(host):