Update code.py
This commit is contained in:
parent
17ae30608e
commit
403d536f6a
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ print("Connecting to WiFi")
|
|||
# connect to your SSID
|
||||
try:
|
||||
wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD'))
|
||||
# pylint: disable = broad-exception-caught
|
||||
# pylint: disable = broad-except
|
||||
except Exception:
|
||||
wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD'))
|
||||
print("Connected to WiFi")
|
||||
|
|
|
|||
Loading…
Reference in a new issue