This commit is contained in:
Miroslav Stampar
2019-06-06 11:44:27 +02:00
parent ceb718107f
commit 0e409d4479
3 changed files with 7 additions and 7 deletions

View File

@@ -452,7 +452,7 @@ def errorUse(expression, dump=False):
value = _errorFields(expression, expressionFields, expressionFieldsList)
if value and isListLike(value):
if len(value) == 1 and isinstance(value[0], six.string_types):
if len(value) == 1 and isinstance(value[0], (six.string_types, type(None))):
value = unArrayizeValue(value)
elif len(value) > 1 and stopLimit == 1:
value = [value]