fix: catch CancelledError in checker pipeline to prevent sweep crash

This commit is contained in:
agatha 2026-03-15 16:48:28 -04:00
parent 06078db34a
commit ee3b061162

View File

@ -35,6 +35,11 @@ async def _run_single_check(checker, proxy, context) -> CheckResult:
passed=False,
detail=f"{checker.name} timed out after {checker.timeout}s",
)
except asyncio.CancelledError:
return CheckResult(
passed=False,
detail=f"{checker.name} was cancelled",
)
except Exception as err:
return CheckResult(
passed=False,