fix: properly check zscore (can be 0)

pull/888/head
Raphaël Vinot 2024-02-24 21:18:57 +01:00
parent c3313b0f90
commit 7e25747d82
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class Processing(AbstractManager):
to_requeue.append(uuid)
for uuid in to_requeue:
if not self.lookyloo.redis.zscore('to_capture', uuid):
if self.lookyloo.redis.zscore('to_capture', uuid) is None
# The capture has been captured in the meantime.
continue
self.logger.info(f'Found a non-queued capture ({uuid}), retrying now.')