Skip to content

Commit 8c2119b

Browse files
committed
Update Connection Failure Exception to ConnectionError
1 parent 41a895c commit 8c2119b

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
@@ -343,7 +343,7 @@ def connect(self, max_attempts=10):
343343
try:
344344
self._wifi.connect(self._secrets["ssid"], self._secrets["password"])
345345
self.requests = self._wifi.requests
346-
except RuntimeError as error:
346+
except ConnectionError as error:
347347
if max_attempts is not None and attempt >= max_attempts:
348348
raise OSError(
349349
"Maximum number of attempts reached when trying to connect to WiFi"

0 commit comments

Comments
 (0)