MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _load_json

Method _load_json

scripts/fetch_updates.py:474–481  ·  view source on GitHub ↗
(self, path: Path)

Source from the content-addressed store, hash-verified

472 self._load_all()
473
474 def _load_json(self, path: Path) -> dict:
475 if not path.exists():
476 return {}
477 try:
478 with open(path, "r", encoding="utf-8") as f:
479 return json.load(f)
480 except Exception:
481 return {}
482
483 def _load_all(self):
484 mdcg = self._load_json(self.root / "eu_mdr" / "mdcg" / "_index.json")

Callers 1

_load_allMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected