Skip to content

Commit 6eb0c37

Browse files
committed
Appemding the patch to actually do something
1 parent 932e56c commit 6eb0c37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_portalbase/network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def get_strftime(self, time_format, location=None, max_attempts=10):
213213
214214
"""
215215
# pylint: disable=line-too-long
216-
self.connect()
216+
self.connect(max_attempts=max_attempts)
217217
api_url = None
218218
reply = None
219219
try:
@@ -271,7 +271,7 @@ def get_local_time(self, location=None, max_attempts=10):
271271
failing or use None to disable. Defaults to 10.
272272
273273
"""
274-
reply = self.get_strftime(TIME_SERVICE_FORMAT, location=location)
274+
reply = self.get_strftime(TIME_SERVICE_FORMAT, location=location, max_attempts=max_attempts)
275275
if reply:
276276
times = reply.split(" ")
277277
the_date = times[0]

0 commit comments

Comments
 (0)