MCPcopy Create free account
hub / github.com/FastLED/FastLED / is_network_error

Function is_network_error

ci/util/pio_package_daemon.py:271–283  ·  view source on GitHub ↗

Detect if error is network-related. Args: error_output: Error output text to check Returns: True if network error detected, False otherwise

(error_output: str)

Source from the content-addressed store, hash-verified

269
270
271def is_network_error(error_output: str) -> bool:
272 """Detect if error is network-related.
273
274 Args:
275 error_output: Error output text to check
276
277 Returns:
278 True if network error detected, False otherwise
279 """
280 for pattern in NETWORK_ERROR_PATTERNS:
281 if re.search(pattern, error_output, re.IGNORECASE):
282 return True
283 return False
284
285
286def get_clean_windows_env() -> dict[str, str]:

Callers 2

process_package_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected