From 1b5575c671f52f02efbcf48d0971027778dffa53 Mon Sep 17 00:00:00 2001 From: "Chenxi Jiang (WICRESOFT NORTH AMERICA LTD)" Date: Fri, 8 May 2026 11:49:25 +0800 Subject: [PATCH] fix-changelog-tool --- scripts/breaking_changes_checker/breaking_changes_tracker.py | 3 ++- scripts/breaking_changes_checker/changelog_tracker.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/breaking_changes_checker/breaking_changes_tracker.py b/scripts/breaking_changes_checker/breaking_changes_tracker.py index cc6dc369b2fb..c0241d9b57b7 100644 --- a/scripts/breaking_changes_checker/breaking_changes_tracker.py +++ b/scripts/breaking_changes_checker/breaking_changes_tracker.py @@ -547,7 +547,8 @@ def check_class_instance_attribute_removed_or_renamed(self, components: Dict) -> for property in deleted_props: bc = None if self._class_name.endswith("Client"): - property_type = self.stable[self._module_name]["class_nodes"][self._class_name]["properties"][property]["attr_type"] + property_data = self.stable[self._module_name]["class_nodes"][self._class_name]["properties"][property] + property_type = property_data["attr_type"] if isinstance(property_data, dict) else property_data # property_type is not always a string, such as client_side_validation which is a bool, so we need to check for strings if property_type is not None and isinstance(property_type, str) and property_type.lower().endswith("operations"): bc = ( diff --git a/scripts/breaking_changes_checker/changelog_tracker.py b/scripts/breaking_changes_checker/changelog_tracker.py index 3f8254b48186..d37a61402a05 100644 --- a/scripts/breaking_changes_checker/changelog_tracker.py +++ b/scripts/breaking_changes_checker/changelog_tracker.py @@ -142,7 +142,8 @@ def run_non_breaking_class_level_diff_checks(self, module: Dict) -> None: self.module_name, class_name, property_name ) if self.class_name.endswith("Client"): - if property_components["attr_type"] is not None and property_components["attr_type"].lower().endswith("operations"): + attr_type = property_components["attr_type"] if isinstance(property_components, dict) else property_components + if attr_type is not None and attr_type.lower().endswith("operations"): fa = ( self.ADDED_OPERATION_GROUP_MSG, ChangeType.ADDED_OPERATION_GROUP,