clearml
clearml copied to clipboard
fix config parsing for the case of empty string keys
Patch Description
Solves this bug:
from clearml.utilities.pyhocon.config_parser import ConfigFactory
ConfigFactory.from_dict({"": 1})
fails with IndexError: list index out of range
.
Hi @radugrosu,
As however this is part of the tokenizer, I'm worried there might be side-effects - since this is part of pyhocon, and the code was not changed there, I suggest contributing this there, and than, once they approve it, we can do it here as well.
WDYT?