Skip to content

Conversation

mowdash
Copy link

@mowdash mowdash commented Dec 2, 2022

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 mowdash changed the title fix: raise error if cert not found instead of continuing within infinite while loop fix: remove infinite while loop and added error handling for retrieve_cert() Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant