Fixed type in start_sources, changed exception to catch only KeyError (which hid the problem)
svn: r188
This commit is contained in:
parent
79d43fd66c
commit
2a6dcf601d
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user