fixing pylint errors 2
This commit is contained in:
parent
ba9099d3a2
commit
104df9166c
1 changed files with 2 additions and 2 deletions
|
|
@ -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.")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue