MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _collect_error

Function _collect_error

scripts/utils/ruffen-docs.py:42–46  ·  view source on GitHub ↗
(match: Match[str])

Source from the content-addressed store, hash-verified

40
41 @contextlib.contextmanager
42 def _collect_error(match: Match[str]) -> Generator[None, None, None]:
43 try:
44 yield
45 except Exception as e:
46 errors.append(CodeBlockError(match.start(), e))
47
48 def _md_match(match: Match[str]) -> str:
49 code = textwrap.dedent(match["code"])

Callers 2

_md_matchFunction · 0.85
finish_fragmentFunction · 0.85

Calls 2

CodeBlockErrorClass · 0.85
startMethod · 0.45

Tested by

no test coverage detected