Skip to content

Commit b41619f

Browse files
committed
[Lint]
1 parent b990d5f commit b41619f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Adafruit_ESP32_Arduino_Demos/ESP32_C6_Firmware_Updater/nina-fw-upgrade-fruitjam.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# Attempt to sync with the ESP32-C6
4444
esptool.sync()
4545
chip_name = esptool.chip_name
46-
if (chip_name is None):
46+
if chip_name is None:
4747
pixels.fill((255, 0, 0))
4848
time.sleep(3)
4949
raise RuntimeError("Unable to detect chip type!")
@@ -60,7 +60,7 @@
6060
except (OSError, RuntimeError) as e:
6161
pixels.fill((255, 0, 0))
6262
time.sleep(2)
63-
raise RuntimeError("Flashing failed: " + str(e))
63+
raise RuntimeError("Flashing failed: " + str(e)) from e
6464

6565
print("Done flashing, resetting..")
6666
esptool.reset()
@@ -70,4 +70,4 @@
7070
pixels.fill((0, 255, 0))
7171
time.sleep(0.5)
7272
pixels.fill((0, 0, 0))
73-
time.sleep(0.5)
73+
time.sleep(0.5)

0 commit comments

Comments
 (0)