mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Remove MetadataNotAvailableError.
This commit is contained in:
parent
c47f9e6283
commit
7ab75fa531
2 changed files with 5 additions and 14 deletions
|
|
@ -125,14 +125,6 @@ class ExpiredMetadataError(Error):
|
|||
|
||||
|
||||
|
||||
class MetadataNotAvailableError(Error):
|
||||
"""Indicate an error locating a Metadata file for a specified target/role."""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class CryptoError(Error):
|
||||
"""Indicate any cryptography-related errors."""
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -936,7 +936,7 @@ def _update_metadata_if_changed(self, metadata_role, referenced_metadata='releas
|
|||
is 'timestamp'. See refresh().
|
||||
|
||||
<Exceptions>
|
||||
tuf.MetadataNotAvailableError:
|
||||
tuf.UpdateError:
|
||||
If 'metadata_role' could not be downloaded after determining
|
||||
that it had changed.
|
||||
|
||||
|
|
@ -1868,11 +1868,10 @@ def _preorder_depth_first_walk(self, target_filepath):
|
|||
role_names = ['targets']
|
||||
|
||||
# Ensure the client has the most up-to-date version of 'targets.txt'.
|
||||
# Raise 'tuf.MetadataNotAvailableError' if the changed metadata
|
||||
# cannot be successfully downloaded and 'tuf.RepositoryError' if the
|
||||
# referenced metadata is missing. Target methods such as this one
|
||||
# are called after the top-level metadata have been refreshed (i.e.,
|
||||
# updater.refresh()).
|
||||
# Raise 'tuf.UpdateError' if the changed metadata cannot be successfully
|
||||
# downloaded and 'tuf.RepositoryError' if the referenced metadata is
|
||||
# missing. Target methods such as this one are called after the top-level
|
||||
# metadata have been refreshed (i.e., updater.refresh()).
|
||||
self._update_metadata_if_changed('targets')
|
||||
|
||||
# Preorder depth-first traversal of the tree of target delegations.
|
||||
|
|
|
|||
Loading…
Reference in a new issue