Skip to content

Add check for public_blob attr. - #2465

Closed
J08nY wants to merge 1 commit into
paramiko:mainfrom
J08nY:fix/public-blob-attr
Closed

J08nY wants to merge 1 commit into
paramiko:mainfrom
J08nY:fix/public-blob-attr

Conversation

@J08nY

@J08nY J08nY commented Oct 9, 2024

Copy link
Copy Markdown

This fixes #2462.

Thanks for the clear write up @paulf69487623.

@johannes85 johannes85 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the same problem at the moment and in a search for a solution I found your pull request. In my case this change breaks the case if key.public_blob is None. Since the hasattr check passes but key.public_blob.key_type ends in a AttributeError: 'NoneType' object has no attribute 'key_type' error.

@oversize

oversize commented Oct 22, 2024 •

Copy link
Copy Markdown

I have the same issue as @johannes85 . The attribute is there but None so if not done as described here #2462 (comment) it will still fail for me.
I do have the private key stored on a yubikey and do not actually have a public key localy anyhow.

@paulf69487623

Copy link
Copy Markdown

I haven't seen any further activity on the PR to add the extra fixes, so I've opened #2475 .

@bitprophet

Copy link
Copy Markdown
Member

Rolling into original bug report.

@bitprophet bitprophet closed this Oct 17, 2026
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.

[BUG] - AttributeError(public_blob)

5 participants