Skip to content

Commit 61a41d2

Browse files
committed
Add server version check
1 parent 4f1541b commit 61a41d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ansys/dpf/core/operator_specification.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@ def _fill_pins(self, binput, to_fill):
434434
for i_type in range(n_types)
435435
]
436436
pin_aliases = []
437-
if hasattr(self._api, "operator_specification_get_pin_num_aliases"):
437+
if server_meet_version("10.0", self._server) and hasattr(
438+
self._api, "operator_specification_get_pin_num_aliases"
439+
):
438440
for i_alias in range(
439441
self._api.operator_specification_get_pin_num_aliases(self, binput, i_pin)
440442
):

0 commit comments

Comments
 (0)