try to avoid key issue on event

svn: r19014
This commit is contained in:
Jérôme Rapinat 2012-03-05 19:23:24 +00:00
parent 4eb638fa15
commit f3e71cef0a

View File

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