Skip to content

Commit

Permalink
use asyncio.Timeouterror, not asyncio.excceptions.Timeouterror (squas…
Browse files Browse the repository at this point in the history
…hme)
  • Loading branch information
berland committed Dec 15, 2023
1 parent 9bfe6b4 commit bc2d822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ert/scheduler/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bc2d822

Please sign in to comment.