verify_delegate() doc ValueError and TypeError

Add missing documentation for ValueError and TypeError inside
Metadata.verify_delegate().

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
This commit is contained in:
Martin Vrachev 2022-02-08 12:32:31 +02:00
parent b497180e6c
commit 5f515791df

View file

@ -364,7 +364,9 @@ def verify_delegate(
Raises:
UnsignedMetadataError: ``delegated_role`` was not signed with
required threshold of keys for ``role_name``
required threshold of keys for ``role_name``.
ValueError: no delegation was found for ``delegated_role``.
TypeError: called this function on non-delegating metadata class.
"""
# Find the keys and role in delegator metadata