Skip to content

Commit e8d871b

Browse files
committed
Try
1 parent d335f3c commit e8d871b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugwise_usb/connection/queue.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from asyncio import (
66
PriorityQueue,
77
Task,
8-
TimeoutError,
98
get_running_loop,
109
sleep,
1110
wait_for,
@@ -147,7 +146,7 @@ async def _send_queue_worker(self) -> None:
147146
while self._running and self._stick is not None:
148147
try:
149148
request = await wait_for(self._submit_queue.get(), timeout=0.5)
150-
except TimeoutError:
149+
except asyncio.TimeoutError:
151150
_LOGGER.debug("No queue-item after 0.5s, doing other work")
152151

153152
_LOGGER.debug("Sending from send queue %s", request)

0 commit comments

Comments
 (0)