fix for TypeError

This commit is contained in:
Barbara Miller 2020-09-25 15:58:47 -07:00
parent f77c152037
commit e29d377dfd

View File

@ -166,7 +166,7 @@ class WarcproxController(object):
with processor.inq.mutex:
l = list(processor.inq.queue)
for recorded_url in l:
if earliest is None or recorded_url.timestamp < earliest:
if not earliest or (earliest and (recorded_url.timestamp < earliest)):
earliest = recorded_url.timestamp
return earliest