Skip to content

Commit

Permalink
Fix Coordinate System example retro on Docker (#1815)
Browse files Browse the repository at this point in the history
* Fix Coordinate System example retro on Docker 

On Docker, older servers do not raise a KeyError but a DPFServerException.

* Update examples/10-mesh_operations/13-nodes_in_local_coordinate_system.py
  • Loading branch information
PProfizi authored Oct 18, 2024
1 parent f758eb4 commit 3ad9835
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# Starting with DPF 2025.1.pre1
cs = dpf.operators.result.coordinate_system()
cs.inputs.data_sources.connect(model)
except KeyError:
except (KeyError, ansys.dpf.gate.errors.DPFServerException) as e:
# For previous DPF versions
cs = model.operator(r"mapdl::rst::CS")

Expand Down

0 comments on commit 3ad9835

Please sign in to comment.