Non-descriptive error when initiating gpt2 tokenizer without internet
```
  File "C:\[path]\api\utilities\tokenizers.py", line 4, in <module>
    gpt2 = GPT2TokenizerFast.from_pretrained("gpt2")
  File "C:\[path]\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1750, in from_pretrained
    commit_hash = extract_commit_hash(resolved_vocab_files[file_id], commit_hash)
  File "C:\[path]\venv\lib\site-packages\transformers\utils\hub.py", line 225, in extract_commit_hash
    search = re.search(r"snapshots/([^/]+)/", resolved_file)
  File "C:\Program Files\Python310\lib\re.py", line 200, in search
    return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
```

Just started getting this error today, any idea for a workaround or a good version to rollback to?
Update
======

This was caused by a poor internet connection.  It is not obvious that this is being caused by a bad or non-existent internet connection.  Could better error logging be added here?<|||||>I took the liberty of moving this issue to `transformers` since the error seemed to have occured here.<|||||>Tagging @sgugger <|||||>Looks like a duplicate of #19186 so should be fixed by #19206 .
@tayler6000 You shouldn't have the error if you do a source install, we will also do a patch release today once we confirm the bug is fully fixed.