Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/4518.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update exception type for scheme call
3 changes: 1 addition & 2 deletions src/ansys/fluent/core/fluent_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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..."
Expand Down
Loading