diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index b29b72b8..232071af 100755 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -51,12 +51,6 @@ def test_bad_hash_error(self): logger.error(bad_hash_error) - def test_decompression_error(self): - download_exception = tuf.exceptions.DownloadError() - decompression_error = tuf.exceptions.DecompressionError(download_exception) - logger.error(decompression_error) - - # Run the unit tests. if __name__ == '__main__': unittest.main() diff --git a/tuf/exceptions.py b/tuf/exceptions.py index a964d3b8..80e2bb05 100755 --- a/tuf/exceptions.py +++ b/tuf/exceptions.py @@ -149,18 +149,6 @@ class UnsupportedLibraryError(Error): pass -class DecompressionError(Error): - """Indicate that some error happened while decompressing a file.""" - - def __init__(self, exception): - # Store the original exception. - self.exception = exception - - def __str__(self): - # Show the original exception. - return repr(self.exception) - - class DownloadError(Error): """Indicate an error occurred while attempting to download a file.""" pass