We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d61018 + 66dcd29 commit ce7edd2Copy full SHA for ce7edd2
swirl/processors/relevancy.py
@@ -376,6 +376,7 @@ def process(self):
376
del item['NOT']
377
break
378
# retrieve the scores and lens from pass 1
379
+ dict_score = None
380
if 'dict_score' in item:
381
dict_score = item['dict_score']
382
del item['dict_score']
@@ -391,6 +392,12 @@ def process(self):
391
392
logger.debug("Found explain")
393
dict_score = item['explain']
394
del item['explain']
395
+
396
+ # Check if dict_score is still not defined
397
+ if dict_score is None:
398
+ self.warning("dict_score is still missing after all attempts to define it!")
399
+ continue # Skip to the next iteration
400
401
relevancy_model = ""
402
# check for _relevancy_model
403
if '_relevancy_model' in item:
0 commit comments