Skip to content

Commit

Permalink
[Core]Fix cross language raise kwargs value error prompt (ray-project…
Browse files Browse the repository at this point in the history
…#38821)

Signed-off-by: LarryLian <[email protected]>
  • Loading branch information
larrylian authored Aug 28, 2023
1 parent d53f281 commit 016f7d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/ray/cross_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ def _format_args(worker, args, kwargs):
"Cross language feature needs --load-code-from-local to be set."
)
if kwargs:
raise TypeError("Cross language remote functions does not support kwargs.")
raise TypeError(
f"Cross language remote functions does not support kwargs, "
f"kwargs:{str(kwargs)}."
)
return args


Expand Down

0 comments on commit 016f7d1

Please sign in to comment.