Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix config parsing for the case of empty string keys #1019

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

radugrosu
Copy link
Contributor

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.

@jkhenning
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants