From 7de51cbca9ae1be55fedb3ad30ac7293d789ac93 Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Wed, 21 Sep 2011 13:44:56 +0000 Subject: [PATCH] 5246: NarWeb crash when using Family Links option for maps with a place with invalid lat/long svn: r18189 --- src/plugins/webreport/NarrativeWeb.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 6c3223eae..ce11b45d1 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -674,8 +674,11 @@ class BasePage(object): place.long, "D.D8") - # 0 = latitude, 1 = longitude, 2 = place title, 3 = place handle, 4 = event date... - place_lat_long.append( [latitude, longitude, placetitle, place.handle, event.get_date_object() ] ) + # 0 = latitude, 1 = longitude, 2 = place title, + # 3 = place handle, 4 = event date... + if latitude is not None: + place_lat_long.append( [latitude, longitude, placetitle, + place.handle, event.get_date_object() ] ) def _get_event_place(self, person, ppl_handle_list): """