From 6aacd516ed6a434413045ef02654c2ed32bcd632 Mon Sep 17 00:00:00 2001 From: James G Sack Date: Sat, 1 Mar 2008 02:46:20 +0000 Subject: [PATCH] fix minor double-count of errors svn: r10145 --- ChangeLog | 5 +++++ src/GrampsDbUtils/_GedcomParse.py | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 088cbb600..e5b7a9fbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-28 Jim Sack + * 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 * src/GrampsDbUtils/_GedcomParse.py: find_family_from_handle returns tuple * src/Editors/_EditPerson.py: don't use find_person but get_person diff --git a/src/GrampsDbUtils/_GedcomParse.py b/src/GrampsDbUtils/_GedcomParse.py index ac99d78d9..2a84005d0 100644 --- a/src/GrampsDbUtils/_GedcomParse.py +++ b/src/GrampsDbUtils/_GedcomParse.py @@ -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):