Skip to content

Commit 3deb797

Browse files
avoid redefinition
1 parent 3c26279 commit 3deb797

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sentry_sdk/integrations/grpc/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def intercept_unary_stream(
8484

8585
client = sentry_sdk.get_client()
8686
span_streaming = has_span_streaming_enabled(client.options)
87+
response: "UnaryStreamCall"
8788
if span_streaming:
8889
with sentry_sdk.traces.start_span(
8990
name="unary stream call to %s" % method,
@@ -101,7 +102,7 @@ def intercept_unary_stream(
101102
)
102103
)
103104

104-
response: "UnaryStreamCall" = continuation(client_call_details, request)
105+
response = continuation(client_call_details, request)
105106
# Setting code on unary-stream leads to execution getting stuck
106107
# span.set_data("code", response.code().name)
107108

@@ -121,7 +122,7 @@ def intercept_unary_stream(
121122
)
122123
)
123124

124-
response: "UnaryStreamCall" = continuation(client_call_details, request)
125+
response = continuation(client_call_details, request)
125126
# Setting code on unary-stream leads to execution getting stuck
126127
# span.set_data("code", response.code().name)
127128

0 commit comments

Comments
 (0)