fixing pylint errors 2

This commit is contained in:
jedgarpark 2025-02-04 18:00:36 -08:00
parent ba9099d3a2
commit 104df9166c

View file

@ -127,7 +127,7 @@ if avg_distance is not None:
# Show cyan on successful connection # Show cyan on successful connection
pixel.fill(CYAN) pixel.fill(CYAN)
time.sleep(1) # Brief pause to show the connection success time.sleep(1) # Brief pause to show the connection success
# pylint: disable=broad-except
except Exception as e: except Exception as e:
print("Failed to connect to WiFi. Error:", e, "\nBoard will hard reset in 30 seconds.") print("Failed to connect to WiFi. Error:", e, "\nBoard will hard reset in 30 seconds.")
pixel.fill(OFF) pixel.fill(OFF)
@ -233,7 +233,7 @@ if avg_distance is not None:
response.close() response.close()
# pylint: disable=broad-except
except Exception as e: except Exception as e:
print("Failed to get or send data, or connect. Error:", e, print("Failed to get or send data, or connect. Error:", e,
"\nBoard will hard reset in 30 seconds.") "\nBoard will hard reset in 30 seconds.")