From 55b00eb776c41a95d6c2bf4f987eae259f899382 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 23 Jan 2023 14:08:18 +0200 Subject: [PATCH] Fix connecting a dictionary to task sometimes raises an exception --- clearml/backend_interface/task/task.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clearml/backend_interface/task/task.py b/clearml/backend_interface/task/task.py index 9ef496c7..5f78ac41 100644 --- a/clearml/backend_interface/task/task.py +++ b/clearml/backend_interface/task/task.py @@ -1228,9 +1228,8 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin): def create_description(): if org_param and org_param.description: return org_param.description - created_description = "" - if org_k in descriptions: - created_description = descriptions[org_k] + # don't use get(org_k, "") here in case org_k in descriptions and the value is None + created_description = descriptions.get(org_k) or "" if isinstance(v, Enum): # append enum values to description if created_description: