Skip to content

Commit 1d5d034

Browse files
committed
Remove try catch
1 parent cab9cf1 commit 1d5d034

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

plugwise_usb/connection/receiver.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,9 @@ async def _receive_queue_worker(self):
230230
return
231231
_LOGGER.debug("Process from receive queue: %s", response)
232232
if isinstance(response, StickResponse):
233-
try:
234-
await self._notify_stick_response_subscribers(response)
235-
except Exception as exc: # [broad-exception-caught]
236-
_LOGGER.warning("Failed to process %s : %s", response, exc)
233+
await self._notify_stick_response_subscribers(response)
237234
else:
238-
try:
239-
await self._notify_node_response_subscribers(response)
240-
except Exception as exc: # [broad-exception-caught]
241-
_LOGGER.warning("Failed to process %s : %s", response, exc)
235+
await self._notify_node_response_subscribers(response)
242236
self._receive_queue.task_done()
243237
_LOGGER.debug("Receive_queue_worker stopped")
244238

0 commit comments

Comments
 (0)