Skip to content

Commit 6e971b5

Browse files
committed
pylint raise-from
1 parent eab57ad commit 6e971b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_ble/hci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def esp32_hci_init(
8383
if debug:
8484
try:
8585
print(startup_message.decode("utf-8"))
86-
except UnicodeError:
87-
raise _bleio.BluetoothError("Garbled HCI startup message")
86+
except UnicodeError as e:
87+
raise _bleio.BluetoothError("Garbled HCI startup message") from e
8888

8989
# pylint: disable=no-member
9090
_bleio.adapter.hci_uart_init(uart=uart, rts=gpio0_and_rts, cts=cts)

0 commit comments

Comments
 (0)