Appemding the patch to actually do something
This commit is contained in:
parent
932e56cca7
commit
6eb0c372d3
1 changed files with 2 additions and 2 deletions
|
|
@ -213,7 +213,7 @@ class NetworkBase:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# pylint: disable=line-too-long
|
# pylint: disable=line-too-long
|
||||||
self.connect()
|
self.connect(max_attempts=max_attempts)
|
||||||
api_url = None
|
api_url = None
|
||||||
reply = None
|
reply = None
|
||||||
try:
|
try:
|
||||||
|
|
@ -271,7 +271,7 @@ class NetworkBase:
|
||||||
failing or use None to disable. Defaults to 10.
|
failing or use None to disable. Defaults to 10.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
reply = self.get_strftime(TIME_SERVICE_FORMAT, location=location)
|
reply = self.get_strftime(TIME_SERVICE_FORMAT, location=location, max_attempts=max_attempts)
|
||||||
if reply:
|
if reply:
|
||||||
times = reply.split(" ")
|
times = reply.split(" ")
|
||||||
the_date = times[0]
|
the_date = times[0]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue