fix minor double-count of errors

svn: r10145
This commit is contained in:
James G Sack 2008-03-01 02:46:20 +00:00
parent 0c2f9601e5
commit 6aacd516ed
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-02-28 Jim Sack <jgsack@san.rr.com>
* src/GrampsDbUtils/_GedcomParse.py minor: remove redundant
counting of errors dating to r8912 patch, I think. I don't believe
this actually affects anything, but it is "clearly" an oversight
2008-02-29 Benny Malengier <benny.malengier@gramps-project.org>
* src/GrampsDbUtils/_GedcomParse.py: find_family_from_handle returns tuple
* src/Editors/_EditPerson.py: don't use find_person but get_person

View File

@ -1072,7 +1072,6 @@ class GedcomParser(UpdateCallback):
if not self.groups:
self.backoff = False
self.__warn(TRUNC_MSG)
self.error_count += 1
self.groups = None
raise Errors.GedcomError(TRUNC_MSG)
@ -1089,7 +1088,6 @@ class GedcomParser(UpdateCallback):
"""
msg = _("Line %d was not understood, so it was ignored.") % line.line
self.__warn(msg)
self.error_count += 1
self.__skip_subordinate_levels(level)
def __warn(self, msg):