Unverified Commit 44a40c14 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix cache version file creation (#19750)

parent bed2edb9
......@@ -1115,6 +1115,7 @@ if cache_version < 1 and cache_is_not_empty:
"message and we will do our best to help."
)
if cache_version < 1:
try:
os.makedirs(TRANSFORMERS_CACHE, exist_ok=True)
with open(cache_version_file, "w") as f:
......
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