We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4028a6 commit a6d1faeCopy full SHA for a6d1fae
1 file changed
sentry_sdk/integrations/mcp.py
@@ -495,7 +495,7 @@ async def _handler_wrapper(
495
uri = original_kwargs.get("uri")
496
497
protocol = None
498
- if hasattr(uri, "scheme") and uri.scheme is not None:
+ if uri is not None and hasattr(uri, "scheme"):
499
protocol = uri.scheme
500
elif handler_name and "://" in handler_name:
501
protocol = handler_name.split("://")[0]
0 commit comments