Skip to content

Commit 535c7b6

Browse files
authored
Fix retro-compatibility for example 13-nodes_in_local_coordinate_system.py (#1849)
Signed-off-by: paul.profizi <[email protected]>
1 parent 39d25c8 commit 535c7b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/10-mesh_operations/13-nodes_in_local_coordinate_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
# Import necessary modules
4343
from ansys.dpf import core as dpf
4444
from ansys.dpf.core import examples
45+
from ansys.dpf.gate.errors import DPFServerException
4546

4647

4748
###############################################################################
@@ -59,7 +60,7 @@
5960
# Starting with DPF 2025.1.pre1
6061
cs = dpf.operators.result.coordinate_system()
6162
cs.inputs.data_sources.connect(model)
62-
except (KeyError, ansys.dpf.gate.errors.DPFServerException) as e:
63+
except (KeyError, DPFServerException) as e:
6364
# For previous DPF versions
6465
cs = model.operator(r"mapdl::rst::CS")
6566

0 commit comments

Comments
 (0)