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

fix: prevent KeyError when popping an unknown property #552

Merged
merged 2 commits into from
Jan 3, 2023

Conversation

shortcuts
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue fixes #550 fixes #544
Need Doc update no

https://algolia.atlassian.net/browse/CR-2497
https://algolia.atlassian.net/browse/DI-676

Describe your change

We ensure the key in present before calling pop, to prevent a KeyError returned if it's not found.

@shortcuts shortcuts self-assigned this Jan 3, 2023
@shortcuts shortcuts marked this pull request as ready for review January 3, 2023 10:05
@shortcuts shortcuts merged commit 643eb0f into master Jan 3, 2023
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.

KeyError when batch saving rules from browse_rules()
3 participants