try to avoid key issue en event

svn: r19012
This commit is contained in:
Jérôme Rapinat 2012-03-05 19:19:45 +00:00
parent cd2c9544cd
commit af90f9ef06

View File

@ -922,8 +922,12 @@ class VariableParse(object):
return ""
def __parse_event(self, person):
event = self.get_event_by_name(person, attrib_parse.get_name())
event_f = EventFormat(self.database, self._in)
#TODO; this try to avoid a key issue
try:
event = self.get_event_by_name(person, attrib_parse.get_name())
event_f = EventFormat(self.database, self._in)
except:
return ""
if event:
return event_f.parse_format(event)
else: