From db4c97398d602397fd3322a13c15fe46a98b6b16 Mon Sep 17 00:00:00 2001 From: Bernat Mas Pastor Date: Tue, 28 Jan 2025 16:42:52 +0100 Subject: [PATCH] fixing inconsistency with exception raising --- maya/api/OpenMaya.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maya/api/OpenMaya.py b/maya/api/OpenMaya.py index 88abf0d..8562eae 100644 --- a/maya/api/OpenMaya.py +++ b/maya/api/OpenMaya.py @@ -68,7 +68,7 @@ def _get_attribute_properties(node_type, attr_name) -> Tuple[dict, str, str]: raise KeyError except KeyError: - raise KeyError( + raise RuntimeError( f'Could not find attribute info on node type: <{node_type}>. Given attribute name: <{attr_name}>.' )