6544: add warning if place on event is missing by using proxies sequence
svn: r21722
This commit is contained in:
parent
e140572cf4
commit
f4c30c462b
@ -233,9 +233,13 @@ class ReferencedBySelectionProxyDb(ProxyDbBase):
|
||||
self.process_attributes(event)
|
||||
|
||||
place_handle = event.get_place_handle()
|
||||
place = self.db.get_place_from_handle(place_handle)
|
||||
if place:
|
||||
self.process_place(place)
|
||||
try:
|
||||
place = self.db.get_place_from_handle(place_handle)
|
||||
if place:
|
||||
self.process_place(place)
|
||||
except AttributeError:
|
||||
import logging
|
||||
logging.warning('Event:%s; Handle:%s' % (event, event.handle))
|
||||
|
||||
def process_place(self, place):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user