File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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 """
You can’t perform that action at this time.
0 commit comments