From f9b8b195df7068a455dec1d18f66383e03ae364c Mon Sep 17 00:00:00 2001 From: Prithwish Mukherjee Date: Tue, 20 Sep 2022 16:28:13 +0530 Subject: [PATCH] Update flobject w.r.t. server side changes --- src/ansys/fluent/core/solver/flobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/fluent/core/solver/flobject.py b/src/ansys/fluent/core/solver/flobject.py index 03d4d20480e7..602918b80c11 100644 --- a/src/ansys/fluent/core/solver/flobject.py +++ b/src/ansys/fluent/core/solver/flobject.py @@ -145,7 +145,7 @@ def get_attr(self, attr) -> Any: """Get the requested attribute for the object.""" attrs = self.get_attrs([attr]) attrs = attrs.get("attrs", attrs) - if attr != "active?" and attrs.get("active?", True) is False: + if attr != "active?" and attrs and attrs.get("active?", True) is False: raise RuntimeError("Object is not active") return attrs[attr] if attrs else None