Throw EnvironmentError when token is not present
CONTRIBUTOR
@mariosasko I've raised a PR #5076 against this issue. Please help to review. Thanks.
2022-10-05T14:48:29Z
https://github.com/huggingface/datasets/issues/5075#issuecomment-1268547262
https://api.github.com/repos/huggingface/datasets/issues/5075
IC_kwDODunzps5LnH6-
https://api.github.com/repos/huggingface/datasets/issues/comments/1268547262/reactions
2022-10-05T14:48:29Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1268547262
https://avatars.githubusercontent.com/u/29496999?v=4
https://api.github.com/users/rahulXs/events{/privacy}
https://api.github.com/users/rahulXs/followers
https://api.github.com/users/rahulXs/following{/other_user}
https://api.github.com/users/rahulXs/gists{/gist_id}
https://github.com/rahulXs
rahulXs
MDQ6VXNlcjI5NDk2OTk5
https://api.github.com/users/rahulXs/orgs
https://api.github.com/users/rahulXs/received_events
https://api.github.com/users/rahulXs/repos
https://api.github.com/users/rahulXs/starred{/owner}{/repo}
https://api.github.com/users/rahulXs/subscriptions
User
https://api.github.com/users/rahulXs
public
Throw EnvironmentError instead of OSError ([link](https://github.com/huggingface/datasets/blob/6ad430ba0cdeeb601170f732d4bd977f5c04594d/src/datasets/arrow_dataset.py#L4306) to the line) in `push_to_hub` when the Hub token is not present.