diff --git a/livekit-rtc/livekit/rtc/participant.py b/livekit-rtc/livekit/rtc/participant.py index 6b4ae805..c4508dca 100644 --- a/livekit-rtc/livekit/rtc/participant.py +++ b/livekit-rtc/livekit/rtc/participant.py @@ -418,8 +418,8 @@ async def run_handler(): response_error = error except Exception as error: logger.exception( - f"Uncaught error returned by RPC handler for { - method}. Returning APPLICATION_ERROR instead. Original error: {error}", + f"Uncaught error returned by RPC handler for {method}." + f" Returning APPLICATION_ERROR instead. Original error: {error}" ) response_error = RpcError._built_in( RpcError.ErrorCode.APPLICATION_ERROR