Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao committed Dec 29, 2024
1 parent 7c35ce6 commit 1358f4c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions livekit-rtc/livekit/rtc/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,9 @@ async def run_handler():
response_error = error
except Exception as error:
logger.exception(
f"Uncaught error returned by RPC handler for {method}."
f" Returning APPLICATION_ERROR instead. Original error: {error}"
f"Uncaught error returned by RPC handler for {method}. "
"Returning APPLICATION_ERROR instead. "
f"Original error: {error}"
)
response_error = RpcError._built_in(
RpcError.ErrorCode.APPLICATION_ERROR
Expand All @@ -437,10 +438,8 @@ async def run_handler():
res = FfiClient.instance.request(req)

if res.rpc_method_invocation_response.error:
logger.exception(
f"error sending rpc method invocation response: {
res.rpc_method_invocation_response.error}"
)
message = res.rpc_method_invocation_response.error
logger.exception(f"error sending rpc method invocation response: {message}")

async def set_metadata(self, metadata: str) -> None:
"""
Expand Down

0 comments on commit 1358f4c

Please sign in to comment.