vcert-python icon indicating copy to clipboard operation
vcert-python copied to clipboard

fix: remove infinite while loop and added error handling for retrieve_cert()

Open mowdash opened this issue 3 years ago • 0 comments

Working with TPP, trying to retrieve a non-existing cert would result in an infinite while loop with the following error message...

ERROR:root:Unknown error format: {'Error': 'Certificate test does not exist.'}
ERROR:root:Unknown error format: {'Error': 'Certificate test does not exist.'}
ERROR:root:Unknown error format: {'Error': 'Certificate test does not exist.'}

Instead we now log the error once and raise a RetrieveCertificateNotFound error.

mowdash avatar Dec 02 '22 21:12 mowdash