HF RL Explorer

chunked() raises a confusing error when called with a negative n

chunked() raises a confusing error when called with a negative n: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When calling chunked() with a negative value for n , the function raises a cryptic ValueError from islice instead of a clear, user-friendly error message.

The task

When calling `chunked()` with a negative value for `n`, the function raises a cryptic `ValueError` from `islice` instead of a clear, user-friendly error message.

Part of FineEnvs/repo2rlenv-r2e-gym.