Emit error on full-text searches not being supported.

This commit is contained in:
Maxime Lamothe-Brassard 2019-10-27 12:26:36 -05:00
parent f43300af8e
commit 0fe72d6133

View File

@ -185,6 +185,8 @@ class LimaCharlieBackend(BaseBackend):
generated = [self.generateNode(val) for val in node]
filtered = [g for g in generated if g is not None]
if filtered:
if isinstance(filtered[0], str):
raise NotImplementedError("Full-text keyboard searches not supported.")
if 1 == len(filtered):
return filtered[0]
return {