Skip to content

Commit

Permalink
fix: added more context to warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalDR committed Nov 14, 2023
1 parent a1b4f95 commit 74364fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyeudiw/x509/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ def _verify_x509_certificate_chain(pems: list[str]):
store_ctx.verify_certificate()

return True
except crypto.Error as e:
_message = f"cert's chain result invalid for the following reason -> {e}"
logging.warning(LOG_ERROR.format(_message))
except Exception as e:
_message = f"cert's chain cannot be validated for error -> {e}"
logging.warning(LOG_ERROR.format(e))
return False

Expand Down

0 comments on commit 74364fc

Please sign in to comment.