diff --git a/warcprox/controller.py b/warcprox/controller.py index b0eea27..954cbc1 100644 --- a/warcprox/controller.py +++ b/warcprox/controller.py @@ -166,8 +166,9 @@ class WarcproxController(object): with processor.inq.mutex: l = list(processor.inq.queue) for recorded_url in l: - if not earliest or (earliest and (recorded_url.timestamp < earliest)): - earliest = recorded_url.timestamp + if recorded_url.timestamp: + if not earliest or (recorded_url.timestamp < earliest): + earliest = recorded_url.timestamp return earliest def postfetch_status(self):