Skip to content

Commit f4b73c2

Browse files
committed
Accept broad exception
1 parent 8828903 commit f4b73c2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

plugwise_usb/connection/receiver.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,14 @@ async def _receive_queue_worker(self):
230230
return
231231
_LOGGER.debug("Process from receive queue: %s", response)
232232
if isinstance(response, StickResponse):
233-
_LOGGER.debug("Received %s", response)
234233
try:
235234
await self._notify_stick_response_subscribers(response)
236-
except Exception as exc:
235+
except Exception as exc: # [broad-exception-caught]
237236
_LOGGER.warning("Failed to process %s : %s", response, exc)
238237
else:
239238
try:
240239
await self._notify_node_response_subscribers(response)
241-
except Exception as exc:
240+
except Exception as exc: # [broad-exception-caught]
242241
_LOGGER.warning("Failed to process %s : %s", response, exc)
243242
self._receive_queue.task_done()
244243
_LOGGER.debug("Receive_queue_worker stopped")

0 commit comments

Comments
 (0)