From bb6143d9cf2edba23cdf54996f56ba391617a8dc Mon Sep 17 00:00:00 2001 From: hpohekar Date: Tue, 7 Oct 2025 19:03:32 +0530 Subject: [PATCH 1/3] fix: Update exception type for scheme call --- src/ansys/fluent/core/fluent_connection.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ansys/fluent/core/fluent_connection.py b/src/ansys/fluent/core/fluent_connection.py index ca0061b04065..c6b413888a30 100644 --- a/src/ansys/fluent/core/fluent_connection.py +++ b/src/ansys/fluent/core/fluent_connection.py @@ -303,7 +303,6 @@ def product_build_info(self) -> str: def get_cortex_connection_properties(self): """Get connection properties of Fluent.""" - from grpc._channel import _InactiveRpcError try: logger.info(self.product_build_info) @@ -315,7 +314,7 @@ def get_cortex_connection_properties(self): cortex_pid = cortex_info.process_id cortex_pwd = cortex_info.working_directory logger.debug("Cortex connection properties successfully obtained.") - except _InactiveRpcError: + except RuntimeError: logger.warning( "Fluent Cortex properties unobtainable. 'force exit()' and other " "methods are not going to work properly. Proceeding..." From 52209c69c7cb80f7ec8313ec50a8095245b6c6bb Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 7 Oct 2025 13:35:58 +0000 Subject: [PATCH 2/3] chore: adding changelog file 4518.fixed.md [dependabot-skip] --- doc/changelog.d/4518.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/4518.fixed.md diff --git a/doc/changelog.d/4518.fixed.md b/doc/changelog.d/4518.fixed.md new file mode 100644 index 000000000000..9e523e2b0861 --- /dev/null +++ b/doc/changelog.d/4518.fixed.md @@ -0,0 +1 @@ +Update exception type for scheme call From 93c01a4ccda76a81b858b6cb7a03e115d08cdd1a Mon Sep 17 00:00:00 2001 From: hpohekar Date: Tue, 7 Oct 2025 20:34:52 +0530 Subject: [PATCH 3/3] add a comment --- src/ansys/fluent/core/fluent_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/fluent/core/fluent_connection.py b/src/ansys/fluent/core/fluent_connection.py index c6b413888a30..f2aea764c467 100644 --- a/src/ansys/fluent/core/fluent_connection.py +++ b/src/ansys/fluent/core/fluent_connection.py @@ -314,7 +314,7 @@ def get_cortex_connection_properties(self): cortex_pid = cortex_info.process_id cortex_pwd = cortex_info.working_directory logger.debug("Cortex connection properties successfully obtained.") - except RuntimeError: + except RuntimeError: # GrpcErrorInterceptor raises RuntimeError on failure logger.warning( "Fluent Cortex properties unobtainable. 'force exit()' and other " "methods are not going to work properly. Proceeding..."