Skip to content

Commit 6d14f35

Browse files
author
shengjun.li
committed
Merge remote-tracking branch 'upstream/develop' into fix_resize
2 parents afaaeb5 + 300c2b5 commit 6d14f35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python_bindings/bindings.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class Index {
9797
else if(space_name=="cosine") {
9898
l2space = new hnswlib::InnerProductSpace(dim);
9999
normalize=true;
100+
} else {
101+
throw new std::runtime_error("Space name must be one of l2, ip, or cosine.");
100102
}
101103
appr_alg = NULL;
102104
ep_added = true;

0 commit comments

Comments
 (0)