Closed qlands closed 3 years ago
In your form, it looks like the following line is a mistake that can be removed:
HHID 1
If this list were used, you would have gotten a Validate failure in v1.4.0. Because it happens to be unused, it's not part of the XML that is validated so it used to pass.
Really, I think pyxform should require choice labels and I'll file a separate issue for that.
Yep. That happens because the label is empty.
Instead of a plain crash, there should be an Exception with a message. Otherwise, a user might not even know what is wrong.
pyxform v1.5.0 FROM PyPI , Python 3.8
Calling this code fails:
The value for choice_list at crach point is:
[{'name': '1'}]
You can access the XLSX form here
The same call does not fail with pyxform 1.4.0