FIX: Update gRPC API version check and improve exception handling#7278
Merged
Samuelopez-ansys merged 3 commits intomainfrom Feb 18, 2026
Merged
FIX: Update gRPC API version check and improve exception handling#7278Samuelopez-ansys merged 3 commits intomainfrom
Samuelopez-ansys merged 3 commits intomainfrom
Conversation
SMoraisAnsys
previously approved these changes
Feb 18, 2026
Collaborator
SMoraisAnsys
left a comment
There was a problem hiding this comment.
LGTM, nice catches
eblanco-ansys
approved these changes
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request updates the logic and documentation around enabling the gRPC API for the EDB module, making it available only for AEDT version 2026 R2 and later (previously 2026 R1). It also introduces improved exception handling and ensures consistent behavior regarding resource release on exceptions, particularly in console and Jupyter environments.
gRPC API Version Requirement Updates:
Updated documentation in
pyaedt_settings.yamlandsettings.rstto specify that the gRPC API for EDB is enabled by default only for AEDT version 2026 R2 or later, instead of 2026 R1.Changed version checks in
edb.pyso that gRPC is enabled only if AEDT version is greater than 2026.1, aligning code behavior with the new documentation.Exception Handling and Resource Management:
raise_exception_or_return_falseingeneral_methods.pyto always use theclose_on_exitattribute when releasing or closing desktops, improving reliability and consistency in cleanup logic.settings.release_on_exception = Falsein bothconsole_setup.pyand the Jupyter notebook template to ensure that exceptions in these environments do not trigger resource release, preventing unintended closures.Issue linked
Please mention the issue number or describe the problem this pull request addresses.
Checklist