Skip to content

Commit 2f4dcfd

Browse files
committed
fix pylint errors
1 parent 0110979 commit 2f4dcfd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_max1704x.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,11 @@ def reset(self) -> None:
128128
try:
129129
self.reset_alert = False # clean up RI alert
130130
return
131-
except OSError as e:
131+
except OSError:
132132
# With CircuitPython 8.0.0-beta.6 and ESP32-S3, the first
133133
# attempt to reset the alert fails.
134134
continue
135-
else:
136-
raise RuntimeError("Clearing reset alert did not succeed")
135+
raise RuntimeError("Clearing reset alert did not succeed")
137136

138137
@property
139138
def cell_voltage(self) -> float:

0 commit comments

Comments
 (0)