[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [torflow/master 2/3] socket.getaddrinfo raises gaierror, not herror



Author: John M. Schanck <john@xxxxxxxxxxx>
Date: Mon, 7 Jun 2010 18:14:01 -0400
Subject: socket.getaddrinfo raises gaierror, not herror
Commit: b13b2ce83a149d8f598b41d35b8baaba0b41ae2a

---
 NetworkScanners/ExitAuthority/soat.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/soat.py b/NetworkScanners/ExitAuthority/soat.py
index 3384a97..ae79591 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -2456,7 +2456,7 @@ class DNSTest(Test):
       results = socket.getaddrinfo(address,None)
       for result in results:
         ips_d.add(result[4][0])
-    except socket.herror, e:
+    except socket.gaierror, e:
       plog('WARN', 'An error occured while performing a basic dns test')
       plog('WARN', e)
       return TEST_INCONCLUSIVE
-- 
1.6.5