fix sentry bug in dff_wiki_skill
@@ -600,8 +600,9 @@ def preprocess_news(news):
news_list = []
for elem in news:
new_content_list = []
- title = elem["title"]
- content = elem["content"]
+ title = elem.get("title", "")
+ content = elem.get("content", "")
+ if title and content:
replace_elements = re.findall(r"\[([\d]+ chars)]", content)
for replace_elem in replace_elements:
content = content.replace(f"[{replace_elem}]", "")
