Fixed type in start_sources, changed exception to catch only KeyError (which hid the problem)

svn: r188
This commit is contained in:
Don Allingham 2001-06-26 13:56:06 +00:00
parent 79d43fd66c
commit 2a6dcf601d

View File

@ -329,7 +329,7 @@ class GrampsParser(handler.ContentHandler):
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
def start_source(self,attrs): 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] f,self.func = GrampsParser.func_map[tag]
if f: if f:
f(self,attrs) f(self,attrs)
except: except KeyError:
GrampsParser.func_map[tag] = (None,None) GrampsParser.func_map[tag] = (None,None)
self.func = None self.func = None