We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab57ad commit 6e971b5Copy full SHA for 6e971b5
adafruit_ble/hci.py
@@ -83,8 +83,8 @@ def esp32_hci_init(
83
if debug:
84
try:
85
print(startup_message.decode("utf-8"))
86
- except UnicodeError:
87
- raise _bleio.BluetoothError("Garbled HCI startup message")
+ except UnicodeError as e:
+ raise _bleio.BluetoothError("Garbled HCI startup message") from e
88
89
# pylint: disable=no-member
90
_bleio.adapter.hci_uart_init(uart=uart, rts=gpio0_and_rts, cts=cts)
0 commit comments