Fix crash when public key cannot be parsed. (#551) (#552)

(cherry picked from commit 5d24d04adf)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2022-12-28 20:53:02 +01:00
committed by GitHub
parent 6f8131a628
commit e2ecd14d86
2 changed files with 3 additions and 1 deletions

View File

@@ -215,7 +215,7 @@ class PublicKeyInfoRetrieval(object):
try:
self.key = load_publickey(content=self.content, backend=self.backend)
except OpenSSLObjectError as e:
raise PublicKeyParseError(to_native(e))
raise PublicKeyParseError(to_native(e), {})
pk = self._get_public_key(binary=True)
result['fingerprints'] = get_fingerprint_of_bytes(