Skip to content

Commit 0550f86

Browse files
committed
Linted
1 parent 0396e0a commit 0550f86

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
@@ -348,7 +348,7 @@ def connect(self, max_attempts=10):
348348
if max_attempts is not None and attempt >= max_attempts:
349349
raise OSError(
350350
"Maximum number of attempts reached when trying to connect to WiFi"
351-
)
351+
) from error
352352
print("Could not connect to internet", error)
353353
print("Retrying in 3 seconds...")
354354
attempt += 1

0 commit comments

Comments
 (0)