mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 18:27:03 +08:00
[Core] fix-bad-stack (#10266)
This commit is contained in:
@@ -113,8 +113,8 @@ def flatten_args(signature_parameters, args, kwargs):
|
||||
parameters=signature_parameters)
|
||||
try:
|
||||
reconstructed_signature.bind(*args, **kwargs)
|
||||
except TypeError as exc:
|
||||
raise TypeError(str(exc))
|
||||
except TypeError as exc: # capture a friendlier stacktrace
|
||||
raise TypeError(str(exc)) from None
|
||||
list_args = []
|
||||
for arg in args:
|
||||
list_args += [DUMMY_TYPE, arg]
|
||||
|
||||
Reference in New Issue
Block a user