Browse Source

That throws herror not gaierror.

Douglas William Thrift 13 years ago
parent
commit
8ea736ac89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      locationbot.py

+ 1 - 1
locationbot.py

@@ -890,7 +890,7 @@ class _AddressMask(object):
 
 			try:
 				host = socket.gethostbyaddr(address)[0]
-			except (socket.gaierror, socket.herror):
+			except socket.herror:
 				pass
 			else:
 				if host != address: