From 2a6dcf601de6bf21ba38ebe64b90247e22621440 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 26 Jun 2001 13:56:06 +0000 Subject: [PATCH] Fixed type in start_sources, changed exception to catch only KeyError (which hid the problem) svn: r188 --- gramps/src/GrampsParser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/src/GrampsParser.py b/gramps/src/GrampsParser.py index 7403013a0..920c28c17 100644 --- a/gramps/src/GrampsParser.py +++ b/gramps/src/GrampsParser.py @@ -329,7 +329,7 @@ class GrampsParser(handler.ContentHandler): # #--------------------------------------------------------------------- def start_source(self,attrs): - self.source = self.db.findSourceNoMap(ul2(attrs["id"])) + self.source = self.db.findSourceNoMap(u2l(attrs["id"])) #--------------------------------------------------------------------- # @@ -841,7 +841,7 @@ class GrampsParser(handler.ContentHandler): f,self.func = GrampsParser.func_map[tag] if f: f(self,attrs) - except: + except KeyError: GrampsParser.func_map[tag] = (None,None) self.func = None