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(