Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Python error via grpc #3596

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: Python error via grpc #3596

wants to merge 2 commits into from

Conversation

mkundu1
Copy link
Contributor

@mkundu1 mkundu1 commented Dec 19, 2024

Requires Fluent PR 549375.

@@ -47,6 +47,7 @@ ansys-units = "^0.3.3"
docker = ">=7.1.0"
grpcio = "^1.30.0"
grpcio-health-checking = "^1.30.0"
grpcio-status = "^1.30.0"
Copy link
Contributor Author

@mkundu1 mkundu1 Dec 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides the compiled code for status.proto and error_details.proto. We have included those protos in the Fluent PR.

# This may need to be updated if the error type changes in the server
with pytest.raises(RuntimeError, match="prefereces not found!"):
solver._se_service.get_state("prefereces", "General")
with pytest.raises(ValueError, match="Datamodel rules for prefereces not found!"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect.

@mkundu1 mkundu1 force-pushed the feat/python-error-via-grpc branch from b159c79 to b5ac36e Compare December 20, 2024 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants