Skip to content

Commit abcecb8

Browse files
update generated code (#2246)
Co-authored-by: PProfizi <[email protected]>
1 parent d2a071f commit abcecb8

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

src/ansys/dpf/core/operators/result/result_provider.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
@@ -103,7 +104,13 @@ def __init__(
103104
config=None,
104105
server=None,
105106
):
106-
super().__init__(name="result_provider", config=config, server=server)
107+
try:
108+
super().__init__(name="result_provider", config=config, server=server)
109+
except (KeyError, errors.DPFServerException) as e:
110+
if "doesn't exist in the registry" in str(e):
111+
super().__init__(name="custom", config=config, server=server)
112+
else:
113+
raise e
107114
self._inputs = InputsResultProvider(self)
108115
self._outputs = OutputsResultProvider(self)
109116
if time_scoping is not None:
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)