* src/ReadGedcom.py (parse_source_reference): Ignore empty QUAY.

svn: r5349
This commit is contained in:
Alex Roitman 2005-10-25 22:33:12 +00:00
parent 8d466a146c
commit b4237ed8df
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2005-10-25 Alex Roitman <shura@gramps-project.org>
* src/ReadGedcom.py (parse_source_reference): Ignore empty QUAY.
2005-10-24 Don Allingham <don@gramps-project.org>
* src/GrampsCfg.py: signal_autoconnect changes
* src/ImageSelect.py: signal_autoconnect changes

View File

@ -1722,7 +1722,10 @@ class GedcomParser:
elif matches[1] in ["OBJE","REFN","TEXT"]:
self.ignore_sub_junk(level+1)
elif matches[1] == "QUAY":
val = int(matches[2])
try:
val = int(matches[2])
except ValueError:
return
if val > 1:
source.set_confidence_level(val+1)
else: