"docs/vscode:/vscode.git/clone" did not exist on "6d38ab1cc35eb8ae943370ef24493ae4df51a208"
Commit 7fe294bf authored by Julien Chaumond's avatar Julien Chaumond
Browse files

Hotfix: same handling of non-existent files as for config

parent b85c59f9
......@@ -152,6 +152,8 @@ class ModelCard(object):
resolved_model_card_file = cached_path(
model_card_file, cache_dir=cache_dir, force_download=True, proxies=proxies, resume_download=False
)
if resolved_model_card_file is None:
raise EnvironmentError
if resolved_model_card_file == model_card_file:
logger.info("loading model card file {}".format(model_card_file))
else:
......
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