fix: catch CancelledError in checker pipeline to prevent sweep crash
This commit is contained in:
parent
06078db34a
commit
ee3b061162
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user