Skip to content

Commit

Permalink
Merge pull request #1836 from MVrachev/verify-sig-serialization-error
Browse files Browse the repository at this point in the history
verify_signature(): handle SerializationError
  • Loading branch information
lukpueh authored Feb 8, 2022
2 parents 177976a + 2f381ae commit d4dd652
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tuf/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
from tuf.api.serialization import (
MetadataDeserializer,
MetadataSerializer,
SerializationError,
SignedSerializer,
)

Expand Down Expand Up @@ -686,6 +687,7 @@ def verify_signature(
sslib_exceptions.CryptoError,
sslib_exceptions.FormatError,
sslib_exceptions.UnsupportedAlgorithmError,
SerializationError,
) as e:
raise exceptions.UnsignedMetadataError(
f"Failed to verify {self.keyid} signature"
Expand Down

0 comments on commit d4dd652

Please sign in to comment.