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")