Skip to content

Commit 4b2e0bc

Browse files
committed
pylint
1 parent eab57ad commit 4b2e0bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_ble/hci.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def esp32_hci_init(
4444
):
4545
"""Do ESP32-specific HCI adapter initialization."""
4646

47+
# pylint: disable=too-many-locals
4748
reset = digitalio.DigitalInOut(esp_reset)
4849
reset.switch_to_output(not reset_high)
4950

@@ -83,8 +84,8 @@ def esp32_hci_init(
8384
if debug:
8485
try:
8586
print(startup_message.decode("utf-8"))
86-
except UnicodeError:
87-
raise _bleio.BluetoothError("Garbled HCI startup message")
87+
except UnicodeError as exc:
88+
raise _bleio.BluetoothError("Garbled HCI startup message") from exc
8889

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

0 commit comments

Comments
 (0)