Skip to content

Commit 104df91

Browse files
committed
fixing pylint errors 2
1 parent ba9099d commit 104df91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Espresso_Water_Meter/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def set_pixel_color(distance):
127127
# Show cyan on successful connection
128128
pixel.fill(CYAN)
129129
time.sleep(1) # Brief pause to show the connection success
130-
130+
# pylint: disable=broad-except
131131
except Exception as e:
132132
print("Failed to connect to WiFi. Error:", e, "\nBoard will hard reset in 30 seconds.")
133133
pixel.fill(OFF)
@@ -233,7 +233,7 @@ def set_pixel_color(distance):
233233

234234
response.close()
235235

236-
236+
# pylint: disable=broad-except
237237
except Exception as e:
238238
print("Failed to get or send data, or connect. Error:", e,
239239
"\nBoard will hard reset in 30 seconds.")

0 commit comments

Comments
 (0)