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