[common] update Extractor.wait() message format
This commit is contained in:
@@ -220,7 +220,7 @@ class Extractor():
|
|||||||
raise exception.HttpError(msg, response)
|
raise exception.HttpError(msg, response)
|
||||||
|
|
||||||
def wait(self, seconds=None, until=None, adjust=1.0,
|
def wait(self, seconds=None, until=None, adjust=1.0,
|
||||||
reason="rate limit reset"):
|
reason="rate limit"):
|
||||||
now = time.time()
|
now = time.time()
|
||||||
|
|
||||||
if seconds:
|
if seconds:
|
||||||
@@ -243,7 +243,7 @@ class Extractor():
|
|||||||
if reason:
|
if reason:
|
||||||
t = datetime.datetime.fromtimestamp(until).time()
|
t = datetime.datetime.fromtimestamp(until).time()
|
||||||
isotime = "{:02}:{:02}:{:02}".format(t.hour, t.minute, t.second)
|
isotime = "{:02}:{:02}:{:02}".format(t.hour, t.minute, t.second)
|
||||||
self.log.info("Waiting until %s for %s.", isotime, reason)
|
self.log.info("Waiting until %s (%s)", isotime, reason)
|
||||||
time.sleep(seconds)
|
time.sleep(seconds)
|
||||||
|
|
||||||
def sleep(self, seconds, reason):
|
def sleep(self, seconds, reason):
|
||||||
|
|||||||
Reference in New Issue
Block a user