Properly handle solutions not found.

This commit is contained in:
kenkeiras 2018-04-24 23:12:14 +02:00
parent 1ded981099
commit 712503804d
2 changed files with 6 additions and 4 deletions

View file

@ -11,4 +11,6 @@ class ParsingLayer:
assert False
def process(self, knowledge_base, input):
yield from parsing.get_fit(knowledge_base, input)
fit = parsing.get_fit(knowledge_base, input)
if fit is not None:
yield fit