6544: add warning if place on event is missing by using proxies sequence

svn: r21723
This commit is contained in:
Jérôme Rapinat 2013-03-23 17:12:45 +00:00
parent d135d2f55b
commit 8bbc216d17

View File

@ -232,9 +232,13 @@ class ReferencedBySelectionProxyDb(ProxyDbBase):
self.process_attributes(event) self.process_attributes(event)
place_handle = event.get_place_handle() place_handle = event.get_place_handle()
place = self.db.get_place_from_handle(place_handle) try:
if place: place = self.db.get_place_from_handle(place_handle)
self.process_place(place) if place:
self.process_place(place)
except AttributeError:
import logging
logging.warning('Event:%s; Handle:%s' % (event, event.handle))
def process_place(self, place): def process_place(self, place):
""" """