marcua/tweeql — Issue #3: Geolocation not handling null replies correctly
Author: marcua
Created: 2012-02-21 12:05:14+00:00
State: open

Via Sam Madden:

Exception in thread Thread-649:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 530, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 483, in run
self.__target(*self.__args, **self.__kwargs)
File "/Library/Python/2.7/site-packages/tweeql/query_runner.py", line 74, in
filter_func = lambda s=self.statuses, q=self.query: self.filter_statuses(s,q)
File "/Library/Python/2.7/site-packages/tweeql/query_runner.py", line 70, in filter_statuses
query.handler.handle_statuses(passes)
File "/Library/Python/2.7/site-packages/tweeql/status_handlers.py", line 27, in handle_statuses
print self.delimiter.join(vals) + "\n"
File "/Library/Python/2.7/site-packages/tweeql/status_handlers.py", line 26, in
vals = (unicode(val) for (alias, val) in status.as_iterable_visible_pairs())
File "/Library/Python/2.7/site-packages/tweeql/tuple_descriptor.py", line 48, in as_iterable_visible_pairs
yield (alias, getattr(self, alias))
File "/Library/Python/2.7/site-packages/tweeql/tuple_descriptor.py", line 34, in __getattr__
result = func(*args)
File "/Library/Python/2.7/site-packages/tweeql/builtin_functions.py", line 142, in get_latlng
tuple_data[Location.LATLNG] = Location.extract_latlng(tuple_data)
File "/Library/Python/2.7/site-packages/tweeql/builtin_functions.py", line 165, in extract_latlng
latlng = Location.geonames_latlng(loc)
File "/Library/Python/2.7/site-packages/tweeql/builtin_functions.py", line 177, in geonames_latlng
for place, (lat, lng) in g:
TypeError: 'NoneType' object is not iterable