pull/455/head
gaoyang07 2023-10-27 10:25:34 +08:00
parent 2520edb795
commit c46861f986
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ class LocalClient(StorageClient):
try:
if not os.path.exists(fp_dirname):
os.makedirs(fp_dirname, exist_ok=True)
except:
except FileNotFoundError:
pass
torch.save(saved_obj, fp, **kwargs)