mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Fix #62 (handle malformed keys).
This commit is contained in:
parent
700d003c03
commit
2f4b3b552e
1 changed files with 2 additions and 1 deletions
|
|
@ -208,7 +208,8 @@ def load_keystore_from_keyfiles(directory_name, keyids, passwords):
|
|||
for password in passwords:
|
||||
try:
|
||||
json_data = _decrypt(raw_contents, password)
|
||||
except tuf.CryptoError:
|
||||
except:
|
||||
logger.warn(repr(full_filepath)+' contains an invalid key.')
|
||||
continue
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue