MCPcopy Create free account
hub / github.com/tox-dev/filelock / _attempt

Function _attempt

tasks/verify_filesystem.py:148–153  ·  view source on GitHub ↗
(action: Callable[[], object])

Source from the content-addressed store, hash-verified

146
147
148def _attempt(action: Callable[[], object]) -> BaseException | None:
149 try:
150 action()
151 except Exception as error: # ruff:ignore[blind-except] - the caller classifies transient versus terminal; a harness must not die
152 return error
153 return None
154
155
156def _has_transient(error: BaseException) -> bool:

Callers 1

_resilientlyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected