Skip to content

Commit

Permalink
Agent: Fix handling of USB import timeout
Browse files Browse the repository at this point in the history
The exception handler caught the wrong exception. The error occurs when
you try to attach a place, that doesn't have all USB devices available.
  • Loading branch information
holesch committed Jan 15, 2024
1 parent bd39167 commit f8626b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion not_my_board/_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ async def __aenter__(self):

try:
await asyncio.wait_for(ready_event.wait(), self._ready_timeout)
except TimeoutError:
except asyncio.TimeoutError:
logger.warning("%s: Attaching USB device timed out", self._name)

self._stack = stack.pop_all()
Expand Down

0 comments on commit f8626b5

Please sign in to comment.