Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Oct 9, 2023
1 parent f9b60a2 commit aa0f5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensordict/tensorclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def _setitem(self, item: NestedKey, value: Any) -> None: # noqa: D417
if isinstance(item, str) or (
isinstance(item, tuple) and all(isinstance(_item, str) for _item in item)
):
raise ValueError("Invalid indexing arguments.")
raise ValueError(f"Invalid indexing arguments: {item}.")

if not is_tensorclass(value) and not isinstance(
value, (TensorDictBase, numbers.Number, Tensor, MemmapTensor)
Expand Down

0 comments on commit aa0f5e3

Please sign in to comment.