Skip to content

Commit 7166e56

Browse files
committed
Add RuntimeError to except block
1 parent bf326aa commit 7166e56

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
@@ -364,7 +364,7 @@ def connect(self, max_attempts=10):
364364
self._wifi.connect(secret_entry["ssid"], secret_entry["password"])
365365
self.requests = self._wifi.requests
366366
break
367-
except ConnectionError as error:
367+
except (RuntimeError, ConnectionError) as error:
368368
if max_attempts is not None and attempt >= max_attempts:
369369
break
370370
print("Could not connect to internet", error)

0 commit comments

Comments
 (0)