summaryrefslogtreecommitdiff
path: root/registry.py
diff options
context:
space:
mode:
Diffstat (limited to 'registry.py')
-rw-r--r--registry.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/registry.py b/registry.py
index 4afdfb9..0dc7a21 100644
--- a/registry.py
+++ b/registry.py
@@ -1,4 +1,4 @@
-# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of Logilab-common.
@@ -360,8 +360,8 @@ class Registry(dict):
according to the given context, or None if no object applies.
"""
try:
- return self.select(__oid, *args, **kwargs)
- except (NoSelectableObject, ObjectNotFound):
+ return self._select_best(self[__oid], *args, **kwargs)
+ except ObjectNotFound:
return None
def possible_objects(self, *args, **kwargs):