Skip to content

Commit

Permalink
Protect vs returning a None grpc message
Browse files Browse the repository at this point in the history
Signed-off-by: Juanjo Alvarez <[email protected]>
  • Loading branch information
juanjux committed May 3, 2024
1 parent faedc35 commit bbdfc5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/contrib/grpc/client_interceptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def __next__(self):
"grpc.response_message",
(n,),
)
if result and "response" in result:
if result and result.get("response"):
n = result["response"].value
return n

Expand Down

0 comments on commit bbdfc5b

Please sign in to comment.