未验证 提交 1d6f0b40 编写于 作者: L liym27 提交者: GitHub

fix bug: add attr_error only when default value is None. test=develop (#21655)

上级 f4041572
......@@ -110,7 +110,7 @@ def diff_attr(ori_attrs, new_attrs):
attr_deleted_error_massage.append(attr_name)
for attr_name in attrs_only_in_new:
if not new_attrs.get(attr_name).get(DEFAULT_VALUE):
if new_attrs.get(attr_name).get(DEFAULT_VALUE) == None:
error, attr_error = True, True
attr_added_error_massage.append(attr_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册