diff --git a/adafruit_portalbase/network.py b/adafruit_portalbase/network.py index f8cb58a..ea9a953 100644 --- a/adafruit_portalbase/network.py +++ b/adafruit_portalbase/network.py @@ -364,7 +364,7 @@ class NetworkBase: self._wifi.connect(secret_entry["ssid"], secret_entry["password"]) self.requests = self._wifi.requests break - except ConnectionError as error: + except (RuntimeError, ConnectionError) as error: if max_attempts is not None and attempt >= max_attempts: break print("Could not connect to internet", error)