Skip to content

Commit 675449e

Browse files
PProfizigithub-actions[bot]
authored andcommitted
update generated code
1 parent 2c44f52 commit 675449e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ansys/dpf/core/operators/result/coordinate_system.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from __future__ import annotations
88

99
from warnings import warn
10+
from ansys.dpf.core.core import errors
1011
from ansys.dpf.core.dpf_operator import Operator
1112
from ansys.dpf.core.inputs import Input, _Inputs
1213
from ansys.dpf.core.outputs import Output, _Outputs
@@ -64,7 +65,13 @@ def __init__(
6465
config=None,
6566
server=None,
6667
):
67-
super().__init__(name="CS", config=config, server=server)
68+
try:
69+
super().__init__(name="CS", config=config, server=server)
70+
except (KeyError, errors.DPFServerException) as e:
71+
if "doesn't exist in the registry" in str(e):
72+
super().__init__(name="mapdl::rst::CS", config=config, server=server)
73+
else:
74+
raise e
6875
self._inputs = InputsCoordinateSystem(self)
6976
self._outputs = OutputsCoordinateSystem(self)
7077
if cs_id is not None:

0 commit comments

Comments
 (0)