Tool fixes (#537)

* private key type is str, some fixes

* catches file exceptions for private key

* adds exception type

* adds exception message
This commit is contained in:
kaczmarczyck
2022-08-29 11:00:31 +02:00
committed by GitHub
parent 2dc44984ed
commit 01cc8333e5
2 changed files with 19 additions and 15 deletions

View File

@@ -169,7 +169,7 @@ def main(args):
("Failed to configure OpenSK (device is partially programmed but "
"the given cert/key don't match the ones currently programmed)."))
else:
error(f"Failed to configure OpenSK (unknown error: {ex}")
error(f"Failed to configure OpenSK (unknown error: {ex})")
return responses