Skip to content
This repository has been 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
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

xverges
Copy link

@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