From e8cf0a8bbdd776df7b9d5f6ca3267773701742a7 Mon Sep 17 00:00:00 2001 From: radu Date: Sun, 21 May 2023 22:59:56 +0100 Subject: [PATCH] fix config parsing for the case of empty string keys --- clearml/utilities/pyhocon/config_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/utilities/pyhocon/config_tree.py b/clearml/utilities/pyhocon/config_tree.py index 343346a2..a1cdb856 100755 --- a/clearml/utilities/pyhocon/config_tree.py +++ b/clearml/utilities/pyhocon/config_tree.py @@ -186,7 +186,7 @@ class ConfigTree(OrderedDict): special_characters = '$}[]:=+#`^?!@*&.' tokens = re.findall( - r'"[^"]+"|[^{special_characters}]+'.format(special_characters=re.escape(special_characters)), + r'"[^"]+"|[^{special_characters}]+|^$'.format(special_characters=re.escape(special_characters)), string) def contains_special_character(token):