Skip to content

Commit 499e036

Browse files
committed
i can def write basic boolean logic
1 parent 5e768d8 commit 499e036

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sentry_sdk/integrations/stdlib.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ def read(self: "HTTPResponse", *args: "Any", **kwargs: "Any") -> "Any":
216216
# read() might be called multiple times to consume a single body,
217217
# so we can't just end the span when read() is done. Instead,
218218
# try to figure out whether the response body has been fully read.
219-
if span and self.fp is None or self.closed:
219+
if span and (self.fp is None or self.closed):
220220
self._sentrysdk_span = None # type: ignore[attr-defined]
221221
_complete_span(span)
222222

223223
def close(self: "HTTPResponse") -> None:
224224
# We patch close() as a best effort fallback in case the span is not
225225
# ended yet in getresponse() or read().
226-
226+
227227
try:
228228
real_close(self)
229229
finally:

0 commit comments

Comments
 (0)