Handle REFN too large to fit into an integer

svn: r1001
This commit is contained in:
Don Allingham 2002-05-19 14:59:35 +00:00
parent 8e4f5a55ac
commit f33e75bff4

View File

@ -768,7 +768,10 @@ class GedcomParser:
self.person.getPrimaryName().addSourceRef(source_ref)
elif matches[1] == "REFN":
if intRE.match(matches[2]):
try:
self.refn[self.person.getId()] = int(matches[2])
except:
pass
elif matches[1] in ["AFN","CHAN","REFN","ASSO"]:
self.ignore_sub_junk(2)
elif matches[1] in ["ANCI","DESI","RIN","RFN"]: