MCPcopy
hub / github.com/Runnin4ik/dpi-detector / collect_error_text

Function collect_error_text

utils/error_classifier.py:39–48  ·  view source on GitHub ↗
(exc: Exception, max_depth: int = 10)

Source from the content-addressed store, hash-verified

37
38
39def collect_error_text(exc: Exception, max_depth: int = 10) -> str:
40 parts = []
41 current = exc
42 for _ in range(max_depth):
43 parts.append(str(current).lower())
44 nxt = current.__cause__ or current.__context__
45 if nxt is None:
46 break
47 current = nxt
48 return " | ".join(parts)
49
50
51# ── Форматирование деталей ────────────────────────────────────────────────────

Callers 3

classify_ssl_errorFunction · 0.85
classify_connect_errorFunction · 0.85
classify_read_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected