~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: replace bare except clauses with specific exceptions in downloaders (#2008)
LearningCircuit71d486fd0de6
diff --git a/src/local_deep_research/research_library/downloaders/biorxiv.py b/src/local_deep_research/research_library/downloaders/biorxiv.pyindex 8f10cc0d38..6369e16e1b 100644--- a/src/local_deep_research/research_library/downloaders/biorxiv.py+++ b/src/local_deep_research/research_library/downloaders/biorxiv.py@@ -5,6 +5,8 @@ bioRxiv/medRxiv PDF and Text Downloaderimport refrom typing import Optionalfrom urllib.parse import urlparse++import requestsfrom loguru import loggerfrom .base import BaseDownloader, ContentType, DownloadResult@@ -86,7 +88,8 @@ class BioRxivDownloader(BaseDownloader):return DownloadResult(skip_reason="bioRxiv/medRxiv server temporarily unavailable")- except:+ except requests.RequestException:+ # Network error checking server - proceed with generic errorpassreturn DownloadResult(skip_reason="Failed to download PDF from bioRxiv/medRxiv"diff --git a/src/local_deep_research/research_library/downloaders/generic.py b/src/local_deep_research/research_library/downloaders/generic.pyindex bd0455b941..4da10d4672 100644--- a/src/local_deep_research/research_library/downloaders/generic.py+++ b/src/local_deep_research/research_library/downloaders/generic.py@@ -71,7 +71,8 @@ class GenericDownloader(BaseDownloader):pdf_content = super()._download_pdf(pdf_url)else:pdf_content = None- except:+ except ValueError:+ # urlparse can raise ValueError for malformed URLspdf_content = Noneif pdf_content:@@ -126,7 +127,7 @@ class GenericDownloader(BaseDownloader):return DownloadResult(skip_reason="Could not connect to server - website may be down")- except:+ except requests.RequestException:return DownloadResult(skip_reason="Network error - could not reach the website")@@ -151,7 +152,8 @@ class GenericDownloader(BaseDownloader):pdf_content = super()._download_pdf(pdf_url)else:pdf_content = None- except:+ except ValueError:+ # urlparse can raise ValueError for malformed URLspdf_content = Noneif pdf_content: