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

@@ -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):