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.
2 parents a9bc7d7 + 8c2119b commit 17a8f45Copy full SHA for 17a8f45
adafruit_portalbase/network.py
@@ -345,7 +345,7 @@ def connect(self, max_attempts=10):
345
try:
346
self._wifi.connect(self._secrets["ssid"], self._secrets["password"])
347
self.requests = self._wifi.requests
348
- except RuntimeError as error:
+ except ConnectionError as error:
349
if max_attempts is not None and attempt >= max_attempts:
350
raise OSError(
351
"Maximum number of attempts reached when trying to connect to WiFi"
0 commit comments