Skip to content

Commit

Permalink
Be a bit more specific about the exception for retrievers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Feb 22, 2023
1 parent adad3bc commit 337e470
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions referencing/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ class Registry(Mapping[URI, Resource[D]]):
The ``retrieve`` argument can be used to configure retrieval of resources
dynamically, either over the network, from a database, or the like.
Pass it a callable which will be called if any URI not present in the
registry is accessed. It must either return a `Resource` or else raise an
exception indicating that the resource is not retrievable.
registry is accessed. It must either return a `Resource` or else raise a
`NoSuchResource` exception indicating that the resource does not exist
even according to the retrieval logic.
"""

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

0 comments on commit 337e470

Please sign in to comment.