Skip to content

Commit 1358f4c

Browse files
committed
fix
1 parent 7c35ce6 commit 1358f4c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

livekit-rtc/livekit/rtc/participant.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,9 @@ async def run_handler():
418418
response_error = error
419419
except Exception as error:
420420
logger.exception(
421-
f"Uncaught error returned by RPC handler for {method}."
422-
f" Returning APPLICATION_ERROR instead. Original error: {error}"
421+
f"Uncaught error returned by RPC handler for {method}. "
422+
"Returning APPLICATION_ERROR instead. "
423+
f"Original error: {error}"
423424
)
424425
response_error = RpcError._built_in(
425426
RpcError.ErrorCode.APPLICATION_ERROR
@@ -437,10 +438,8 @@ async def run_handler():
437438
res = FfiClient.instance.request(req)
438439

439440
if res.rpc_method_invocation_response.error:
440-
logger.exception(
441-
f"error sending rpc method invocation response: {
442-
res.rpc_method_invocation_response.error}"
443-
)
441+
message = res.rpc_method_invocation_response.error
442+
logger.exception(f"error sending rpc method invocation response: {message}")
444443

445444
async def set_metadata(self, metadata: str) -> None:
446445
"""

0 commit comments

Comments
 (0)