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

Handle missing 'op_name' key in response #175

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

BrianJKoopman
Copy link
Member

Fixes #174.

I'm still not sure what caused this or what the malformed response even looked like. But I created a test with a mostly valid response, just missing the op_name key, which will hit this KeyError.

We report the response and client it came from when raising a RuntimeError, which in the case of this failed pysmurf-controller will catch it, log the error, and drop the client from further commanding.

@BrianJKoopman BrianJKoopman merged commit 2933c1a into main Oct 14, 2024
4 checks passed
@BrianJKoopman BrianJKoopman deleted the koopman/response-keyerror-174 branch October 14, 2024 15:28
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.

Malformed agent response causes KeyError in check_response
1 participant