Skip to content

Commit 17a8f45

Browse files
authored
Merge pull request #64 from makermelissa/main
Update Connection Failure Exception to ConnectionError
2 parents a9bc7d7 + 8c2119b commit 17a8f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_portalbase/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def connect(self, max_attempts=10):
345345
try:
346346
self._wifi.connect(self._secrets["ssid"], self._secrets["password"])
347347
self.requests = self._wifi.requests
348-
except RuntimeError as error:
348+
except ConnectionError as error:
349349
if max_attempts is not None and attempt >= max_attempts:
350350
raise OSError(
351351
"Maximum number of attempts reached when trying to connect to WiFi"

0 commit comments

Comments
 (0)