Add missing None check
This commit is contained in:
parent
ca10ce281b
commit
7a01a84063
1 changed files with 3 additions and 0 deletions
|
|
@ -787,6 +787,9 @@ class DownloadQueue(metaclass=Singleton):
|
||||||
|
|
||||||
for worker_id in workers:
|
for worker_id in workers:
|
||||||
worker = workers.get(worker_id, {})
|
worker = workers.get(worker_id, {})
|
||||||
|
if not worker:
|
||||||
|
continue
|
||||||
|
|
||||||
started = worker.get("started", None)
|
started = worker.get("started", None)
|
||||||
if not started:
|
if not started:
|
||||||
LOG.debug(f"Worker '{worker_id}' not working yet.")
|
LOG.debug(f"Worker '{worker_id}' not working yet.")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue