From f4c30c462b27b2e4a021915b08b04d9cad9207d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 23 Mar 2013 17:08:12 +0000 Subject: [PATCH] 6544: add warning if place on event is missing by using proxies sequence svn: r21722 --- src/gen/proxy/referencedbyselection.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gen/proxy/referencedbyselection.py b/src/gen/proxy/referencedbyselection.py index 6b5575666..ec825546c 100644 --- a/src/gen/proxy/referencedbyselection.py +++ b/src/gen/proxy/referencedbyselection.py @@ -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): """