We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf326aa commit 7166e56Copy full SHA for 7166e56
adafruit_portalbase/network.py
@@ -364,7 +364,7 @@ def connect(self, max_attempts=10):
364
self._wifi.connect(secret_entry["ssid"], secret_entry["password"])
365
self.requests = self._wifi.requests
366
break
367
- except ConnectionError as error:
+ except (RuntimeError, ConnectionError) as error:
368
if max_attempts is not None and attempt >= max_attempts:
369
370
print("Could not connect to internet", error)
0 commit comments