diff --git a/Elgato_WiFi_Light_Controller/code.py b/Elgato_WiFi_Light_Controller/code.py index a49f3c4d0..0c9786794 100644 --- a/Elgato_WiFi_Light_Controller/code.py +++ b/Elgato_WiFi_Light_Controller/code.py @@ -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")