Skip to content

Commit 337e470

Browse files
committed
Be a bit more specific about the exception for retrievers.
1 parent adad3bc commit 337e470

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

referencing/_core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,9 @@ class Registry(Mapping[URI, Resource[D]]):
228228
The ``retrieve`` argument can be used to configure retrieval of resources
229229
dynamically, either over the network, from a database, or the like.
230230
Pass it a callable which will be called if any URI not present in the
231-
registry is accessed. It must either return a `Resource` or else raise an
232-
exception indicating that the resource is not retrievable.
231+
registry is accessed. It must either return a `Resource` or else raise a
232+
`NoSuchResource` exception indicating that the resource does not exist
233+
even according to the retrieval logic.
233234
"""
234235

235236
_resources: PMap[URI, Resource[D]] = field(

0 commit comments

Comments
 (0)