Skip to content

Commit c6b069e

Browse files
committed
fix: avoid null ref exception
1 parent ce94c1f commit c6b069e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sources/gc-qa-rag-etl/etlapp/ved/initialize_forum_qa.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ def start_initialize_forum_qa(context: EtlRagContext) -> None:
210210
content = read_text_from_file(file_path)
211211
forum = extract_object(content)
212212

213+
if not thread_dict[file_index]["content"]:
214+
continue
215+
213216
metadata = {
214217
"product": product,
215218
"url": thread_dict[file_index]["content"]["url"],

0 commit comments

Comments
 (0)