From afe7fa39f9563f452653ef809c88d2645d70cd72 Mon Sep 17 00:00:00 2001 From: Enno Borgsteede Date: Tue, 26 May 2015 20:23:21 +0200 Subject: [PATCH] #4161 #8548: Fix a baptism date error https://gramps-project.org/bugs/view.php?id=8548#c41455 also reported and patched by 'hmmmpf' on #4161 --- gramps/plugins/importer/importgeneweb.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/importer/importgeneweb.py b/gramps/plugins/importer/importgeneweb.py index 4613bcf62..d9ca96cf8 100644 --- a/gramps/plugins/importer/importgeneweb.py +++ b/gramps/plugins/importer/importgeneweb.py @@ -636,9 +636,8 @@ class GeneWebParser(object): birth_source = self.get_or_create_source(self.decode(fields[idx])) idx += 1 elif field[0] == '!': - LOG.debug("Baptize at: %s" % fields[idx]) - bapt_date = self.parse_date(self.decode(fields[idx][1:])) - idx += 1 + LOG.debug("Baptize at: %s" % field[1:]) + bapt_date = self.parse_date(self.decode(field[1:])) elif field == '#bp' and idx < len(fields): LOG.debug("Birth Place: %s" % fields[idx]) birth_place = self.get_or_create_place(self.decode(fields[idx]))