Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Do not break when a dialog node's context has an empty key#382

Open
xverges wants to merge 1 commit intoIBM:develfrom
xverges:XV_empty_key_in_context
Open

Do not break when a dialog node's context has an empty key#382
xverges wants to merge 1 commit intoIBM:develfrom
xverges:XV_empty_key_in_context

Conversation

@xverges
Copy link
Copy Markdown

@xverges xverges commented Oct 14, 2019

If the dialog contains an empty line in a node's context editor
image
the node's context includes a "":"" dictionary element:

"parent": "Welcome",
            "context": {
                "": "",
                "clientProfile": {
...
                    "country": "Canada",
                    "firstName": "Guest"
                }
            },
...

and
dialog_json2xml.py crashes without giving the user any clue about how to fix the problem (ValueError: Empty tag name)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant