diff --git a/tools/check_op_desc.py b/tools/check_op_desc.py index 465d7cf02de155d3be8ca78832487b220624b3e7..d92866d3d3650128f5e1235bc06be1300c993100 100644 --- a/tools/check_op_desc.py +++ b/tools/check_op_desc.py @@ -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)