From 17f22fc0c76da78e3b786532d18a0dde5f64e738 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 17 Jan 2007 05:18:47 +0000 Subject: [PATCH] * src/GrampsDb/_ReadGedcom.py: handle missing place in LDS ord svn: r7921 --- gramps2/ChangeLog | 1 + gramps2/src/GrampsDb/_ReadGedcom.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index b531f283a..08ba4ebfb 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2007-01-16 Don Allingham + * src/GrampsDb/_ReadGedcom.py: handle missing place in LDS ord * src/DataViews/_PersonView.py: optimization * src/ViewManager.py: remove double build call * src/DisplayModels/_PeopleModel.py: optimization diff --git a/gramps2/src/GrampsDb/_ReadGedcom.py b/gramps2/src/GrampsDb/_ReadGedcom.py index 3faf0f719..28b2d47a4 100644 --- a/gramps2/src/GrampsDb/_ReadGedcom.py +++ b/gramps2/src/GrampsDb/_ReadGedcom.py @@ -1827,12 +1827,14 @@ class GedcomParser(UpdateCallback): def parse_ord(self,lds_ord,level): note = "" pf = _place_field + place = None while True: matches = self.get_next() if self.level_is_finished(matches, level): - load_place_values(place,place.get_title(),pf) + if place: + load_place_values(place,place.get_title(),pf) break elif matches[1] == TOKEN_TEMP: value = self.extract_temple(matches)