-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agent): use context.abort() instead of returning
We stopped always yielding stuff unconditionally, so now if you get an error and use our own `abort_with_msg` we'll get an error iterating responses, as we never yield anything and just return `None`. So instead just use proper grpc `ServicerContext.abort()` method to raise an exception instead.
- Loading branch information
Showing
1 changed file
with
6 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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