MCPcopy
hub / github.com/openai/openai-python / _collect_error

Function _collect_error

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

Source from the content-addressed store, hash-verified

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

Callers 2

_md_matchFunction · 0.85
finish_fragmentFunction · 0.85

Calls 3

CodeBlockErrorClass · 0.85
startMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected