5246: NarWeb crash when using Family Links option for maps with a place with invalid lat/long

svn: r18190
This commit is contained in:
Michiel Nauta 2011-09-21 13:45:41 +00:00
parent 6096cd9a41
commit 0374c99a33

View File

@ -654,9 +654,10 @@ class BasePage(object):
# 0 = latitude, 1 = longitude, 2 = place title, 3 = handle,
# 4 = event date
place_lat_long.append([ latitude, longitude,
placetitle, place.handle,
event.get_date_object() ])
if latitude is not None:
place_lat_long.append([ latitude, longitude,
placetitle, place.handle,
event.get_date_object() ])
def _get_event_place(self, person):
"""