From b91af2ad205df5465fdcb6625c4dc4b7ee38a633 Mon Sep 17 00:00:00 2001 From: Mainak Kundu <94432368+mkundu1@users.noreply.github.com> Date: Fri, 5 Jul 2024 09:21:36 -0400 Subject: [PATCH] fix: Check for when create() doesn't return the name (#3018) --- src/ansys/fluent/core/solver/flobject.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ansys/fluent/core/solver/flobject.py b/src/ansys/fluent/core/solver/flobject.py index 4eac25b54b3..af76faedadb 100644 --- a/src/ansys/fluent/core/solver/flobject.py +++ b/src/ansys/fluent/core/solver/flobject.py @@ -1577,7 +1577,11 @@ def execute_command(self, *args, **kwds): kwds[arg] = argument.after_execute( command_name=self.python_name, value=value, kwargs=kwds ) - if self.obj_name == "create" and isinstance(self._parent, NamedObject): + if ( + self.obj_name == "create" + and isinstance(self._parent, NamedObject) + and ret in self._parent + ): return self._parent[ret] return_t = getattr(self, "return_type", None) if return_t: