MCPcopy
hub / github.com/HisMax/RedInk / _looks_like_network

Function _looks_like_network

backend/errors.py:353–363  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

351
352
353def _looks_like_network(text: str) -> bool:
354 return any(keyword in text for keyword in [
355 "connectionerror",
356 "connection aborted",
357 "connection reset",
358 "failed to establish a new connection",
359 "network",
360 "网络",
361 "连接失败",
362 "连接错误",
363 ])
364
365
366def _first_meaningful_line(value: str) -> str:

Callers 1

classify_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected