diff options
-rw-r--r-- | registry.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/registry.py b/registry.py index fec35ad..7686a66 100644 --- a/registry.py +++ b/registry.py @@ -332,7 +332,8 @@ class Registry(dict): """return object with the `oid` identifier. Only one object is expected to be found. - raise :exc:`ObjectNotFound` if not object with id <oid> in <registry> + raise :exc:`ObjectNotFound` if there are no object with id `oid` in this + registry raise :exc:`AssertionError` if there is more than one object there """ @@ -344,9 +345,10 @@ class Registry(dict): """return the most specific object among those with the given oid according to the given context. - raise :exc:`ObjectNotFound` if not object with id <oid> in <registry> + raise :exc:`ObjectNotFound` if there are no object with id `oid` in this + registry - raise :exc:`NoSelectableObject` if not object apply + raise :exc:`NoSelectableObject` if no object can be selected """ obj = self._select_best(self[__oid], *args, **kwargs) if obj is None: |