We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94b2a50 commit 2ed1bc4Copy full SHA for 2ed1bc4
securedrop_client/queue.py
@@ -92,7 +92,8 @@ def _check_for_duplicate_jobs(self, job: QueueJob) -> bool:
92
stored on self.current_job. We check that the job to be added is not among them.
93
"""
94
in_progress_jobs = [in_progress_job for priority, in_progress_job in self.queue.queue]
95
- in_progress_jobs.append(self.current_job)
+ if self.current_job is not None:
96
+ in_progress_jobs.append(self.current_job)
97
if job in in_progress_jobs:
98
logger.debug("Duplicate job {}, skipping".format(job))
99
return True
0 commit comments