Closed DominicOram closed 2 months ago
wait_for_value currently raises a TimeoutError rather than an asyncio.TimeoutError. The later is probably more expected given it's a coroutine.
wait_for_value
TimeoutError
asyncio.TimeoutError
Specifically this caught us in https://github.com/DiamondLightSource/dodal/actions/runs/10845576879/job/30096722501?pr=786 where we were expecting to catch an asyncio.Timeout and we were missing it.
asyncio.Timeout
Note this is only an issue in python <3.11, where the two errors were then combined.
wait_for_value
currently raises aTimeoutError
rather than anasyncio.TimeoutError
. The later is probably more expected given it's a coroutine.Specifically this caught us in https://github.com/DiamondLightSource/dodal/actions/runs/10845576879/job/30096722501?pr=786 where we were expecting to catch an
asyncio.Timeout
and we were missing it.Note this is only an issue in python <3.11, where the two errors were then combined.