Fixed another two problems with string formatting using {}.

svn: r14614
This commit is contained in:
Peter Landgren 2010-03-04 13:56:26 +00:00
parent 8636acda8e
commit 244b8621fc

View File

@ -1239,11 +1239,11 @@ class ProgenParser(object):
father_handle = father > 0 and self.__find_person_handle("I%d" % father) or None father_handle = father > 0 and self.__find_person_handle("I%d" % father) or None
mother_handle = mother > 0 and self.__find_person_handle("I%d" % mother) or None mother_handle = mother > 0 and self.__find_person_handle("I%d" % mother) or None
if father > 0 and not father_handle: if father > 0 and not father_handle:
log.warning(_("cannot find father for I%(person)s (father=%(id)d)")) % { log.warning(_("cannot find father for I%(person)s (father=%(id)d)") % {
'person' : pers_id, 'id' : father } 'person' : pers_id, 'id' : father } )
elif mother > 0 and not mother_handle: elif mother > 0 and not mother_handle:
log.warning(_("cannot find mother for I%(person)s (mother=%(mother)d)")) % { log.warning(_("cannot find mother for I%(person)s (mother=%(mother)d)") % {
'person' : pers_id, 'mother' : mother } 'person' : pers_id, 'mother' : mother } )
else: else:
fam = self.fm2fam.get((father_handle, mother_handle), None) fam = self.fm2fam.get((father_handle, mother_handle), None)
if not fam: if not fam: