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)
| 269 | |
| 270 | |
| 271 | def 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 | |
| 286 | def get_clean_windows_env() -> dict[str, str]: |
no outgoing calls
no test coverage detected