diff --git a/doc/changelog.d/4518.fixed.md b/doc/changelog.d/4518.fixed.md new file mode 100644 index 00000000000..9e523e2b086 --- /dev/null +++ b/doc/changelog.d/4518.fixed.md @@ -0,0 +1 @@ +Update exception type for scheme call diff --git a/src/ansys/fluent/core/fluent_connection.py b/src/ansys/fluent/core/fluent_connection.py index ca0061b0406..f2aea764c46 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: # GrpcErrorInterceptor raises RuntimeError on failure logger.warning( "Fluent Cortex properties unobtainable. 'force exit()' and other " "methods are not going to work properly. Proceeding..."