Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

Potential fix for pull request finding 'Empty except'

Mohd Kaifdc8d7ddb0358
diff --git a/mcp/tools/extraction.py b/mcp/tools/extraction.py
index 284d9ba8..8d346df9 100644
--- a/mcp/tools/extraction.py
+++ b/mcp/tools/extraction.py
@@ -17,7 +17,7 @@ def _clear_cache() -> None:
from semantica.semantic_extract.cache import _result_cache
_result_cache.clear()
except Exception:
- pass
+ log.debug("Could not clear semantic_extract cache; continuing", exc_info=True)
def handle_extract_entities(args: dict) -> dict: