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: remove redundant traceback usage alongside logger.exception() (#2069)

LearningCircuit04debbd3f13b
diff --git a/src/local_deep_research/advanced_search_system/filters/journal_reputation_filter.py b/src/local_deep_research/advanced_search_system/filters/journal_reputation_filter.py
index b7154c3b64..247c098985 100644
--- a/src/local_deep_research/advanced_search_system/filters/journal_reputation_filter.py
+++ b/src/local_deep_research/advanced_search_system/filters/journal_reputation_filter.py
@@ -1,5 +1,4 @@
import time
-import traceback
from datetime import timedelta
from typing import Any, Dict, List, Optional
@@ -356,8 +355,6 @@ class JournalReputationFilter(BaseFilter):
) -> List[Dict]:
try:
return list(filter(self.__check_result, results))
- except Exception as e:
- logger.exception(
- f"Journal quality filtering failed: {e}, {traceback.format_exc()}"
- )
+ except Exception:
+ logger.exception("Journal quality filtering failed")
return results
diff --git a/src/local_deep_research/advanced_search_system/strategies/constrained_search_strategy.py b/src/local_deep_research/advanced_search_system/strategies/constrained_search_strategy.py
index 950b0b0897..5e8c1595af 100644
--- a/src/local_deep_research/advanced_search_system/strategies/constrained_search_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/constrained_search_strategy.py
@@ -1148,11 +1148,7 @@ Return one {entity_type} name per line. Only include names that could satisfy th
return self._simple_search(search_query)
except Exception as e:
- logger.error(f"Source-based search failed with error: {e}")
- logger.error(f"Error type: {type(e).__name__}")
- import traceback
-
- logger.error(f"Traceback: {traceback.format_exc()}")
+ logger.exception("Source-based search failed")
logger.warning("Falling back to simple search")
return self._simple_search(search_query)
diff --git a/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py b/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py
index 1c4bd84149..d87f92dc6a 100644
--- a/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py
@@ -360,9 +360,6 @@ class FocusedIterationStrategy(BaseSearchStrategy):
except Exception as e:
logger.exception(f"Error in focused iteration search: {e!s}")
- import traceback
-
- logger.exception(traceback.format_exc())
return self._create_error_response("Search iteration failed")
def _execute_parallel_searches(self, queries: List[str]) -> List[Dict]:
diff --git a/src/local_deep_research/advanced_search_system/strategies/llm_driven_modular_strategy.py b/src/local_deep_research/advanced_search_system/strategies/llm_driven_modular_strategy.py
index eb85bed7a0..8d2935ce63 100644
--- a/src/local_deep_research/advanced_search_system/strategies/llm_driven_modular_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/llm_driven_modular_strategy.py
@@ -460,9 +460,6 @@ class LLMDrivenModularStrategy(BaseSearchStrategy):
except Exception as e:
logger.exception("Error in analyze_topic")
- import traceback
-
- logger.exception(f"Traceback: {traceback.format_exc()}")
return {
"findings": [],
"iterations": 0,
@@ -780,9 +777,6 @@ class LLMDrivenModularStrategy(BaseSearchStrategy):
except Exception:
logger.exception("Error in LLM-driven search")
- import traceback
-
- logger.exception(f"Traceback: {traceback.format_exc()}")
return "Search failed", {"error": "Search failed"}
async def _generate_final_answer(self, query, best_candidate, constraints):