Asserts replaced by exceptions (huggingface#3171)
MEMBER
Your first PR went smoothly, well done!
You are welcome to continue contributing to this project.
Gràcies, @joseporiolayats! 😉 
2021-11-06T06:35:32Z
https://github.com/huggingface/datasets/pull/3174#issuecomment-962403693
https://api.github.com/repos/huggingface/datasets/issues/3174
IC_kwDODunzps45XR1t
https://api.github.com/repos/huggingface/datasets/issues/comments/962403693/reactions
2021-11-06T06:35:32Z
https://api.github.com/repos/huggingface/datasets/issues/comments/962403693
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
I've replaced two asserts with their proper exceptions following the guidelines described in issue #3171 by following the contributing guidelines.

PS: This is one of my first PRs, hoping I don't break anything!