From df19c5a4bfe81eb5f55e9e09b4ddf4fafb57eb03 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Mon, 4 Nov 2024 15:17:35 +0100 Subject: [PATCH] Fix retro-compatibility for example 13-nodes_in_local_coordinate_system.py Signed-off-by: paul.profizi --- .../10-mesh_operations/13-nodes_in_local_coordinate_system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/10-mesh_operations/13-nodes_in_local_coordinate_system.py b/examples/10-mesh_operations/13-nodes_in_local_coordinate_system.py index 949317e897..33f502d02c 100644 --- a/examples/10-mesh_operations/13-nodes_in_local_coordinate_system.py +++ b/examples/10-mesh_operations/13-nodes_in_local_coordinate_system.py @@ -42,6 +42,7 @@ # Import necessary modules from ansys.dpf import core as dpf from ansys.dpf.core import examples +from ansys.dpf.gate.errors import DPFServerException ############################################################################### @@ -59,7 +60,7 @@ # Starting with DPF 2025.1.pre1 cs = dpf.operators.result.coordinate_system() cs.inputs.data_sources.connect(model) -except (KeyError, ansys.dpf.gate.errors.DPFServerException) as e: +except (KeyError, DPFServerException) as e: # For previous DPF versions cs = model.operator(r"mapdl::rst::CS")