Browse Source

Hmm, maybe?

Douglas William Thrift 13 years ago
parent
commit
56aa422494
2 changed files with 4 additions and 1 deletions
  1. 1 1
      locationbot.py
  2. 3 0
      locationbot.sql

+ 1 - 1
locationbot.py

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

+ 3 - 0
locationbot.sql

@@ -34,6 +34,9 @@ create table locationbot.latitude (
 	authorized boolean not null
 );
 
+-- create table locationbot.foursquare (
+-- );
+
 create index nick_location_index on locationbot.nick (location);
 create index nick_updated_index on locationbot.nick (updated);
 create index nick_latitude_index on locationbot.nick (latitude);