Skip to content

Commit da5ea3f

Browse files
committed
linting
1 parent 9523882 commit da5ea3f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

sentry_sdk/integrations/wsgi.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,18 @@ def __call__(self, environ, start_response):
120120
)
121121

122122
if transaction is not None:
123-
transaction = sentry_sdk.start_transaction(
123+
sentry_sdk.start_transaction(
124124
transaction,
125125
custom_sampling_context={"wsgi_environ": environ},
126-
)
127-
transaction.__enter__()
126+
).__enter__()
128127

129128
try:
130129
response = self.app(
131130
environ,
132131
partial(
133-
_sentry_start_response, start_response, transaction
132+
_sentry_start_response,
133+
start_response,
134+
transaction,
134135
),
135136
)
136137
except BaseException:

sentry_sdk/tracing_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
from types import FrameType
3838

39+
from sentry_sdk._types import ExcInfo
40+
3941

4042
SENTRY_TRACE_REGEX = re.compile(
4143
"^[ \t]*" # whitespace

0 commit comments

Comments
 (0)