diff --git a/sentry_sdk/integrations/grpc/aio/server.py b/sentry_sdk/integrations/grpc/aio/server.py index 5bdd267aba..c87b42670b 100644 --- a/sentry_sdk/integrations/grpc/aio/server.py +++ b/sentry_sdk/integrations/grpc/aio/server.py @@ -30,7 +30,7 @@ async def intercept_service(self, continuation, handler_call_details): self._handler_call_details = handler_call_details handler = await continuation(handler_call_details) if handler is None: - return + return None if not handler.request_streaming and not handler.response_streaming: handler_factory = grpc.unary_unary_rpc_method_handler