Skip to content

Commit

Permalink
Merge pull request #1838 from MVrachev/verify-delegate-document-excep…
Browse files Browse the repository at this point in the history
…tions

verify_delegate() document ValueError and TypeError
  • Loading branch information
lukpueh authored Feb 8, 2022
2 parents 2cc3df5 + 5f51579 commit 1e36ec6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tuf/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e36ec6

Please sign in to comment.