File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def set_pixel_color(distance):
103
103
avg_distance = get_average_distance ()
104
104
105
105
if avg_distance is not None :
106
- # pylint: disable=consider-using-min-builtin
106
+
107
107
if avg_distance >= 22 :
108
108
# pylint: disable=invalid-name
109
109
avg_distance = 22
@@ -118,7 +118,7 @@ def set_pixel_color(distance):
118
118
119
119
# Try connecting to WiFi
120
120
try :
121
- # pylint: disable=consider-using-f-string
121
+
122
122
print ("Connecting to %s" % os .getenv ("CIRCUITPY_WIFI_SSID" ))
123
123
# Show pink while attempting to connect
124
124
pixel .fill (PINK )
@@ -127,7 +127,7 @@ def set_pixel_color(distance):
127
127
# Show cyan on successful connection
128
128
pixel .fill (CYAN )
129
129
time .sleep (1 ) # Brief pause to show the connection success
130
- # pylint: disable=broad-exception-caught
130
+
131
131
except Exception as e :
132
132
print ("Failed to connect to WiFi. Error:" , e , "\n Board will hard reset in 30 seconds." )
133
133
pixel .fill (OFF )
@@ -233,7 +233,7 @@ def set_pixel_color(distance):
233
233
234
234
response .close ()
235
235
236
- # pylint: disable=broad-exception-caught
236
+
237
237
except Exception as e :
238
238
print ("Failed to get or send data, or connect. Error:" , e ,
239
239
"\n Board will hard reset in 30 seconds." )
You can’t perform that action at this time.
0 commit comments