Skip to content

Commit dd11098

Browse files
committed
Replace sslib exceptions
Replace sslib exceptions raised in Updater with the corresponding ones defined in tuf. Signed-off-by: Teodora Sechkova <[email protected]>
1 parent e885ae4 commit dd11098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tuf/client_rework/updater_rework.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def _check_hashes_obj(file_object, trusted_hashes):
860860

861861
# Raise an exception if any of the hashes are incorrect.
862862
if trusted_hash != computed_hash:
863-
raise sslib_exceptions.BadHashError(trusted_hash, computed_hash)
863+
raise exceptions.BadHashError(trusted_hash, computed_hash)
864864

865865
logger.info(
866866
"The file's " + algorithm + " hash is" " correct: " + trusted_hash
@@ -881,7 +881,7 @@ def _check_hashes(file_content, trusted_hashes):
881881

882882
# Raise an exception if any of the hashes are incorrect.
883883
if trusted_hash != computed_hash:
884-
raise sslib_exceptions.BadHashError(trusted_hash, computed_hash)
884+
raise exceptions.BadHashError(trusted_hash, computed_hash)
885885

886886
logger.info(
887887
"The file's " + algorithm + " hash is" " correct: " + trusted_hash

0 commit comments

Comments
 (0)