Skip to content

Commit

Permalink
Hotfix for v0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rabits committed Jan 7, 2025
1 parent cea604f commit e3c2630
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/ef_ble/eflib/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ async def waitDisconnected(self):
await self._disconnected.wait()

async def errorsAdd(self, exception: Exception):
tb = traceback.extract_tb(exception.__traceback__)
tb = traceback.format_tb(exception.__traceback__)
_LOGGER.error(
"%s: Captured exception: %s: %s", self._address, exception, tb.format_exc()
"%s: Captured exception: %s:\n%s", self._address, exception, "".join(tb)
)
self._errors += 1
if self._errors > 5:
Expand Down Expand Up @@ -489,7 +489,7 @@ async def listenForDataHandler(
try:
packets = await self.parseEncPackets(bytes(recv_data))
except Exception as e:
await self.errorsAdd(err)
await self.errorsAdd(e)
return

for packet in packets:
Expand Down

0 comments on commit e3c2630

Please sign in to comment.