Closed jcs closed 6 years ago
valuesDict always contains the keys for fields specified in a UI XML file. Text fields that are empty are returned as empty strings (vs None) since there are times when an empty string is what's intended rather than None (which is somewhat more restrictive). This is a relatively standard convention for Python-based UIs.
Also use
.get
instead of[]
for optional fields to avoidKeyError
s like this post describes, though I'm still not sure why Indigo would be passing a dict withoutmsgUser
.