From e5e8406e1f9481b6ebd0fba96d2f086f7ae47fba Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 25 May 2018 10:12:55 +0100 Subject: [PATCH] doc: minor fix to resource resolution docs Correct the documentation for what happens if a resource is not found. --- doc/source/developer_reference/writing_plugins.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/developer_reference/writing_plugins.rst b/doc/source/developer_reference/writing_plugins.rst index b5aece72..666be63b 100644 --- a/doc/source/developer_reference/writing_plugins.rst +++ b/doc/source/developer_reference/writing_plugins.rst @@ -241,8 +241,9 @@ An object looking for a resource invokes a resource resolver with an instance of ``Resource`` describing the resource it is after. The resolver goes through the getters registered for that resource type in priority order attempting to obtain the resource; once the resource is obtained, it is returned to the calling -object. If none of the registered getters could find the resource, ``None`` is -returned instead. +object. If none of the registered getters could find the resource, +``NotFoundError`` is raised (or``None`` is returned instead, if invoked with +``strict=False``). The most common kind of object looking for resources is a ``Workload``, and the ``Workload`` class defines