Skip to content

Throw an exception if passed an unrecognized space_name. #297

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

Merged
merged 1 commit into from
Apr 5, 2021

Conversation

psobot
Copy link
Contributor

@psobot psobot commented Mar 23, 2021

Currently, hnswlib will segfault if called from Python with an unrecognized space_name, as l2space is left undefined. This PR proposes a fix for that by throwing an exception instead.

@yurymalkov yurymalkov changed the base branch from master to develop April 5, 2021 05:31
@yurymalkov yurymalkov merged commit 300c2b5 into nmslib:develop Apr 5, 2021
@yurymalkov
Copy link
Member

Great! Thanks for the fix!

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