Commit bfec203d authored by Yohei Tamura's avatar Yohei Tamura Committed by Lysandre Debut
Browse files

modified: src/transformers/tokenization_utils.py

parent f599623a
...@@ -460,7 +460,7 @@ class PreTrainedTokenizer(object): ...@@ -460,7 +460,7 @@ class PreTrainedTokenizer(object):
try: try:
tokenizer = cls(*init_inputs, **init_kwargs) tokenizer = cls(*init_inputs, **init_kwargs)
except OSError: except OSError:
OSError( raise OSError(
"Unable to load vocabulary from file. " "Unable to load vocabulary from file. "
"Please check that the provided vocabulary is accessible and not corrupted." "Please check that the provided vocabulary is accessible and not corrupted."
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment