From de8e5b609898247ad0530be8b86b9ba861ed28c7 Mon Sep 17 00:00:00 2001 From: Gilad Kalchheim Date: Wed, 13 Mar 2024 07:46:05 +0000 Subject: [PATCH] Handle the case where job_id is none --- utilities/mobile_server_pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/mobile_server_pool.py b/utilities/mobile_server_pool.py index c9f87d744d..a0647af8f1 100644 --- a/utilities/mobile_server_pool.py +++ b/utilities/mobile_server_pool.py @@ -209,7 +209,7 @@ def cleanup_for_blocked_nodes(job_name=None): if doc["state"] == "available": continue job_id = doc["username"] - if job_id == "": + if job_id == "" or job_id == None: job_id = "test_job:123" length_array = [] length_array = job_id.split(":")