"vscode:/vscode.git/clone" did not exist on "d99ed7ad618037ae878f0758157ed0764bd7f935"
Unverified Commit 85d2d8c9 authored by Lysandre Debut's avatar Lysandre Debut Committed by GitHub
Browse files

Fix local_files_only for TF (#6091)

parent 9e80f972
...@@ -847,7 +847,7 @@ def get_from_cache( ...@@ -847,7 +847,7 @@ def get_from_cache(
else: else:
matching_files = [ matching_files = [
file file
for file in fnmatch.filter(os.listdir(cache_dir), filename + ".*") for file in fnmatch.filter(os.listdir(cache_dir), filename.split(".")[0] + ".*")
if not file.endswith(".json") and not file.endswith(".lock") if not file.endswith(".json") and not file.endswith(".lock")
] ]
if len(matching_files) > 0: if len(matching_files) > 0:
......
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