Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostkeys: fix raising KeyError in SubDict.__delitem__() #1024

Closed
wants to merge 2 commits into from

Conversation

jiazhang0
Copy link

If the specified key type is found out, the exception KeyError should
not happen.

Signed-off-by: Lans Zhang jia.zhang@windriver.com

If the specified key type is found out, the exception KeyError should
not happen.

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
@bitprophet
Copy link
Member

bitprophet commented Jul 25, 2017

Thanks! Would you be able to add a test for this too? 👍

SubDict.__delitem__() would trigger the KeyError exception if a key type to
be deleted is not present.

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
@jiazhang0
Copy link
Author

@bitprophet Hi, I have attached a test patch for this issue.

bitprophet added a commit that referenced this pull request Nov 29, 2021
@bitprophet
Copy link
Member

Cherry-picked/manually merged this in, it's out in 2.8.1. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants