except key error
e.g. levenshtein indices will not written to file according to line 158
@@ -532,7 +532,10 @@ class StaticMatching(Matching):
if hasattr(predicate, "canopy"):
predicate.canopy = canopies[predicate]
else:
+ try:
predicate.index._index = indices[predicate]
+ except KeyError:
+ pass
self.loaded_indices = True
