4161: Fix empty #buri fields

Still present on Geneweb 6 and 7alpha

patch by 'hmmmpf'
This commit is contained in:
Jérôme Rapinat 2015-05-26 20:36:37 +02:00
parent 2a26ca6c5c
commit bdd70dec1c

View File

@ -668,6 +668,7 @@ class GeneWebParser(object):
death_source = self.get_or_create_source(self.decode(fields[idx]))
idx += 1
elif field == '#buri' and idx < len(fields):
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