fix: update exception throw from OSError to EnvironmentError in `push…
{'login': 'rahulXs', 'id': 29496999, 'node_id': 'MDQ6VXNlcjI5NDk2OTk5', 'avatar_url': 'https://avatars.githubusercontent.com/u/29496999?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/rahulXs', 'html_url': 'https://github.com/rahulXs', 'followers_url': 'https://api.github.com/users/rahulXs/followers', 'following_url': 'https://api.github.com/users/rahulXs/following{/other_user}', 'gists_url': 'https://api.github.com/users/rahulXs/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/rahulXs/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/rahulXs/subscriptions', 'organizations_url': 'https://api.github.com/users/rahulXs/orgs', 'repos_url': 'https://api.github.com/users/rahulXs/repos', 'events_url': 'https://api.github.com/users/rahulXs/events{/privacy}', 'received_events_url': 'https://api.github.com/users/rahulXs/received_events', 'type': 'User', 'site_admin': False}
[]
[]
_The documentation is not available anymore as the PR was closed or merged._
Status:
Ready for review

Description of Changes:
Fixes #5075

Changes proposed in this pull request:
- Throw EnvironmentError instead of OSError in `push_to_hub` when the Hub token is not present.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5076/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/5076', 'html_url': 'https://github.com/huggingface/datasets/pull/5076', 'diff_url': 'https://github.com/huggingface/datasets/pull/5076.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/5076.patch', 'merged_at': '2022-10-07T14:33:27Z'}