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 0396e0a commit 0550f86Copy full SHA for 0550f86
adafruit_portalbase/network.py
@@ -348,7 +348,7 @@ def connect(self, max_attempts=10):
348
if max_attempts is not None and attempt >= max_attempts:
349
raise OSError(
350
"Maximum number of attempts reached when trying to connect to WiFi"
351
- )
+ ) from error
352
print("Could not connect to internet", error)
353
print("Retrying in 3 seconds...")
354
attempt += 1
0 commit comments