Skip to content

~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.

fix: Address CodeQL security vulnerabilities

LearningCircuit39abe0e43b8b
diff --git a/src/local_deep_research/web/routes/metrics_routes.py b/src/local_deep_research/web/routes/metrics_routes.py
index 67555a2380..021e2f0a13 100644
--- a/src/local_deep_research/web/routes/metrics_routes.py
+++ b/src/local_deep_research/web/routes/metrics_routes.py
@@ -2413,9 +2413,11 @@ def api_classify_domains():
}
), 400
- except Exception as e:
+ except Exception:
logger.exception("Error classifying domains")
- return jsonify({"status": "error", "message": str(e)}), 500
+ return jsonify(
+ {"status": "error", "message": "Failed to classify domains"}
+ ), 500
@metrics_bp.route("/api/domain-classifications/progress", methods=["GET"])
diff --git a/tests/test_link_analytics.py b/tests/test_link_analytics.py
index cf7d03c3dc..120662dc77 100644
--- a/tests/test_link_analytics.py
+++ b/tests/test_link_analytics.py
@@ -200,7 +200,9 @@ class TestLinkAnalytics:
top_domains = {
d["domain"]: d["count"] for d in analytics["top_domains"]
}
- assert "github.com" in top_domains
+ # Only exact domains should be present
+ expected_domains = {"github.com", "example.com", "python.org"}
+ assert set(top_domains.keys()) == expected_domains
assert (
top_domains["github.com"] == 2
) # Both www and non-www counted together