Skip to content

Conversation

@arun-y99
Copy link

@arun-y99 arun-y99 commented Feb 3, 2025

This PR fixes issue #852 where ValueError is not raised when the RSA private key is in an incorrect format. As mentioned in the issue, IndexError was thrown when the key string was a single line. Fixed this issue by catching all errors raised during importing and raising a single ValueError.

@Legrandin
Copy link
Owner

Thanks but I think that eac9de8e129b2a489d5aa330d55e59f346e6fc02p is simpler.

@Legrandin Legrandin closed this Mar 15, 2025
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.

2 participants