mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Raise error in case of missing artifact directory
This commit is contained in:
parent
617e5f7c1d
commit
7e839204d1
@ -347,7 +347,7 @@ class Artifacts(object):
|
||||
|
||||
if create_zip_file:
|
||||
folder = Path('').joinpath(*artifact_object.parts[:-1])
|
||||
if not folder.is_dir():
|
||||
if not folder.is_dir() or not folder.parts:
|
||||
raise ValueError("Artifact file/folder '{}' could not be found".format(
|
||||
artifact_object.as_posix()))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user