Skip to content

Commit a35045a

Browse files
committed
.
1 parent e5004d4 commit a35045a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/integrations/sanic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ async def _context_exit(
236236

237237
span.end()
238238

239-
if integration._unsampled_statuses:
239+
if integration and integration._unsampled_statuses:
240240
warnings.warn(
241241
"The unsampled_statuses SanicIntegration option has no effect when span streaming is active.",
242242
stacklevel=2,

0 commit comments

Comments
 (0)