From: Guillaume Abrioux Date: Thu, 29 Jan 2026 10:38:45 +0000 (+0100) Subject: node-proxy: narrow build_data exception handling and re-raise X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=894d04ef46ea4866435d661a84c159af273dab83;p=ceph-ci.git node-proxy: narrow build_data exception handling and re-raise With this commit, it catches only KeyError, TypeError, and AttributeError in build_data() instead of Exception, and re-raise after logging so callers get the actual error. Fixes: https://tracker.ceph.com/issues/74749 Signed-off-by: Guillaume Abrioux --- diff --git a/src/ceph-node-proxy/ceph_node_proxy/redfishdellsystem.py b/src/ceph-node-proxy/ceph_node_proxy/redfishdellsystem.py index 2c9eee9f0d1..7078ce384e3 100644 --- a/src/ceph-node-proxy/ceph_node_proxy/redfishdellsystem.py +++ b/src/ceph-node-proxy/ceph_node_proxy/redfishdellsystem.py @@ -46,9 +46,9 @@ class RedfishDellSystem(BaseRedfishSystem): member_id = d.get('MemberId') result[member_id] = {} result[member_id] = process_data(member_id, fields, d) - - except Exception as e: + except (KeyError, TypeError, AttributeError) as e: self.log.error(f"Can't build data: {e}") + raise return normalize_dict(result) def get_sn(self) -> str: