From d2bef4a698cb49b2252f24701dd7f92b9c37718f Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Fri, 8 Nov 2013 11:46:22 +0000 Subject: [PATCH] Prevent setting place name to None svn: r23473 --- gramps/plugins/tool/extractcity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/tool/extractcity.py b/gramps/plugins/tool/extractcity.py index 431a90d22..aad599a17 100644 --- a/gramps/plugins/tool/extractcity.py +++ b/gramps/plugins/tool/extractcity.py @@ -617,7 +617,8 @@ class ExtractCity(tool.BatchTool, ManagedWindow): place = self.db.get_place_from_handle(row[6]) location = ('', '', '', row[2], '', row[3], row[5]) self.place_import.store_location(location, place.handle) - place.set_name(row[2]) + if row[2]: + place.set_name(row[2]) place.set_type(PlaceType.CITY) if row[4]: place.set_code(row[4])