From bdd70dec1c53e9d140e029fced44f7c6cb302fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 26 May 2015 20:36:37 +0200 Subject: [PATCH] 4161: Fix empty #buri fields Still present on Geneweb 6 and 7alpha patch by 'hmmmpf' --- gramps/plugins/importer/importgeneweb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/importer/importgeneweb.py b/gramps/plugins/importer/importgeneweb.py index d3ae9b7d3..9f1ace368 100644 --- a/gramps/plugins/importer/importgeneweb.py +++ b/gramps/plugins/importer/importgeneweb.py @@ -668,9 +668,10 @@ class GeneWebParser(object): death_source = self.get_or_create_source(self.decode(fields[idx])) idx += 1 elif field == '#buri' and idx < len(fields): - LOG.debug("Burial Date: %s" % fields[idx]) - bur_date = self.parse_date(self.decode(fields[idx])) - idx += 1 + if fields[idx][0]!='#': # bug in GeneWeb: empty #buri fields + LOG.debug("Burial Date: %s" % fields[idx]) + bur_date = self.parse_date(self.decode(fields[idx])) + idx += 1 elif field == '#crem' and idx < len(fields): LOG.debug("Cremention Date: %s" % fields[idx]) crem_date = self.parse_date(self.decode(fields[idx]))