From a668f0437c8300d2ff9525084929984988a09179 Mon Sep 17 00:00:00 2001 From: Jan Heinrich Merker Date: Mon, 4 Nov 2024 23:43:26 +0100 Subject: [PATCH] Fix code --- chatnoir_pyterrier/retrieve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatnoir_pyterrier/retrieve.py b/chatnoir_pyterrier/retrieve.py index 5dacfa2..eb568a6 100644 --- a/chatnoir_pyterrier/retrieve.py +++ b/chatnoir_pyterrier/retrieve.py @@ -89,7 +89,7 @@ def _merge_result( try: row["text"] = row["contents_plain"] = result.cache_contents(plain=True) except Exception: - row["text"] = None + row["text"] = row["contents_plain"] = None if Feature.CONTENT_TYPE in self.features: row["content_type"] = result.content_type if Feature.LANGUAGE in self.features: