We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3554fe commit 9e12930Copy full SHA for 9e12930
src/ansys/systemcoupling/core/adaptor/impl/injected_commands.py
@@ -318,8 +318,9 @@ def _get_interface_and_transfer_names(
318
interface_names = setup.coupling_interface.get_object_names()
319
320
if transfer_names is not None:
321
- # There must be a single interface in this case or interface_name must be specified
322
- if len(interface_names) != 1 or interface_name is not None:
+ # There must be a single interface in this case.
+ # Either interface_names has length 1 or interface_name must be specified
323
+ if len(interface_names) != 1 and interface_name is None:
324
raise RuntimeError(
325
"'transfer_names' cannot be used when there is more than "
326
"one interface and 'interface_name' is not specified."
0 commit comments