Browse Source

Error handling.

Douglas William Thrift 12 years ago
parent
commit
5960f51c5b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      locationbot.py

+ 3 - 0
locationbot.py

@@ -302,6 +302,9 @@ class LocationBot(ircbot.SingleServerIRCBot):
 			for nick, channels, granularity, old_location, old_coordinates, old_accuracy, old_speed, old_heading, old_altitude, old_altitude_accuracy, old_updated, token, secret in cursor.fetchall():
 				try:
 					updated, coordinates, accuracy, speed, heading, altitude, altitude_accuracy, location = self.__latitude(granularity, token, secret)
+				except KeyError, error:
+					print nick, error
+					continue
 				except Exception, error:
 					traceback.print_exc()
 					continue