~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
Fix: Handle None values in extract_links_from_search_results to prevent NoneType errors
hashedviking5dbb68dbbd43
diff --git a/src/local_deep_research/utilties/search_utilities.py b/src/local_deep_research/utilties/search_utilities.pyindex 90b4e0ffce..a3604bb1f4 100644--- a/src/local_deep_research/utilties/search_utilities.py+++ b/src/local_deep_research/utilties/search_utilities.py@@ -19,17 +19,26 @@ def extract_links_from_search_results(search_results: List[Dict]) -> List[Dict]:Returns a list of dictionaries with 'title' and 'url' keys."""links = []- for result in search_results:+ if not search_results:+ return links+ for result in search_results:try:+ # Ensure we handle None values safely before calling strip()+ title = result.get("title", "")+ url = result.get("link", "")+ index = result.get("index", "")- title = result.get("title", "").strip()- url = result.get("link", "").strip()- index = result.get("index", "").strip()+ # Apply strip() only if the values are not None+ title = title.strip() if title is not None else ""+ url = url.strip() if url is not None else ""+ index = index.strip() if index is not None else ""if title and url:links.append({"title": title, "url": url, "index": index})- except Exception:+ except Exception as e:+ # Log the specific error for debugging+ logger.error(f"Error extracting link from result: {str(e)}")continuereturn links