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):
103103avg_distance = get_average_distance ()
104104
105105if avg_distance is not None :
106- # pylint: disable=consider-using-min-builtin
106+
107107 if avg_distance >= 22 :
108108 # pylint: disable=invalid-name
109109 avg_distance = 22
@@ -118,7 +118,7 @@ def set_pixel_color(distance):
118118
119119 # Try connecting to WiFi
120120 try :
121- # pylint: disable=consider-using-f-string
121+
122122 print ("Connecting to %s" % os .getenv ("CIRCUITPY_WIFI_SSID" ))
123123 # Show pink while attempting to connect
124124 pixel .fill (PINK )
@@ -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- # pylint: disable=broad-exception-caught
130+
131131 except Exception as e :
132132 print ("Failed to connect to WiFi. Error:" , e , "\n Board 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- # pylint: disable=broad-exception-caught
236+
237237 except Exception as e :
238238 print ("Failed to get or send data, or connect. Error:" , e ,
239239 "\n Board will hard reset in 30 seconds." )
You can’t perform that action at this time.
0 commit comments