From bc2d822303ea5b2bb21eeb366c3b647bdbd9172a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Fri, 15 Dec 2023 15:24:59 +0100 Subject: [PATCH] use asyncio.Timeouterror, not asyncio.excceptions.Timeouterror (squashme) --- src/ert/scheduler/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ert/scheduler/job.py b/src/ert/scheduler/job.py index 7bf6b3cf084..1ce941106cb 100644 --- a/src/ert/scheduler/job.py +++ b/src/ert/scheduler/job.py @@ -99,7 +99,7 @@ async def threadsafer_future_wait(future: asyncio.Future[_T]) -> _T: threadsafer_future_wait(self.returncode), timeout=self.real.max_runtime, ) - except asyncio.exceptions.TimeoutError: + except asyncio.TimeoutError: assert self.real.max_runtime is not None await asyncio.sleep(self.real.max_runtime) timeout_event = CloudEvent(