From 9de644bf1d0400b4db237d474f0d3f9629a231c4 Mon Sep 17 00:00:00 2001 From: Enno Borgsteede Date: Tue, 26 May 2015 20:38:03 +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 9f1ace368..fe5d97ed6 100644 --- a/gramps/plugins/importer/importgeneweb.py +++ b/gramps/plugins/importer/importgeneweb.py @@ -644,9 +644,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]))