MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / discard_best_effort

Method discard_best_effort

openkb/mutation.py:251–257  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

249 self.journal_path.unlink(missing_ok=True)
250
251 def discard_best_effort(self) -> Exception | None:
252 try:
253 self.discard()
254 except Exception as exc:
255 logger.warning("Mutation journal cleanup failed: %s", exc)
256 return exc
257 return None
258
259
260def _restore_hardlinked_dir(backup: Path, target: Path) -> None:

Calls 1

discardMethod · 0.95