comparing with instance instead

This commit is contained in:
simon 2021-10-11 16:11:30 +07:00
parent 35a5eda36e
commit 76f49b4cf7

View File

@ -588,7 +588,7 @@ class PostData:
RedisQueue("dl_queue").clear()
elif to_execute == "kill":
task_id = RedisArchivist().get_message("dl_queue_id")
if not task_id["status"]:
if not isinstance(task_id, str):
task_id = False
else:
print("brutally killing " + task_id)