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: preventing KeyError("_highlightResult") #550

Closed
wants to merge 5 commits into from
Closed

Conversation

JeheeChoi
Copy link

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

Describe your change

Checking if the _highlightResult key is present before calling the pop method in the iterators.py file on line 58

if ("_highlightResult" in hit):
                    hit.pop("_highlightResult")

What problem is this fixing?

Prevent returning error - KeyError: ‘_highlightResult’ while using browse_rules() method

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()
2 participants