Only convert main location to new format if it exists

svn: r16087
This commit is contained in:
Nick Hall 2010-10-30 21:55:39 +00:00
parent bc3ceaf5dc
commit d5ce999d30

View File

@ -187,6 +187,7 @@ def gramps_upgrade_15(self):
for handle in self.place_map.keys():
place = self.place_map[handle]
new_place = list(place)
if new_place[5] is not None:
new_place[5] = convert_location(new_place[5])
new_place[6] = [convert_location(loc) for loc in new_place[6]]
new_place = new_place[:11] + new_place[12:]