Remove MetadataNotAvailableError.

This commit is contained in:
dachshund 2013-09-06 11:17:33 -04:00
parent c47f9e6283
commit 7ab75fa531
2 changed files with 5 additions and 14 deletions

View file

@ -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

View file

@ -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.