mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Fix delete artifacts after upload
This commit is contained in:
parent
51c8c84bc4
commit
149d55442d
@ -339,7 +339,9 @@ class UploadEvent(MetricsEventAdapter):
|
|||||||
# noinspection PyBroadException
|
# noinspection PyBroadException
|
||||||
try:
|
try:
|
||||||
output = pathlib2.Path(self._local_image_path)
|
output = pathlib2.Path(self._local_image_path)
|
||||||
if not output.is_file():
|
if output.is_file():
|
||||||
|
local_file = output
|
||||||
|
else:
|
||||||
output = None
|
output = None
|
||||||
except Exception:
|
except Exception:
|
||||||
output = None
|
output = None
|
||||||
|
@ -328,6 +328,7 @@ class Artifacts(object):
|
|||||||
artifact_object = LazyEvalWrapper._load_object(artifact_object)
|
artifact_object = LazyEvalWrapper._load_object(artifact_object)
|
||||||
|
|
||||||
pathlib_types = (Path, pathlib_Path,) if pathlib_Path is not None else (Path,)
|
pathlib_types = (Path, pathlib_Path,) if pathlib_Path is not None else (Path,)
|
||||||
|
local_filename = None
|
||||||
|
|
||||||
# try to convert string Path object (it might reference a file/folder)
|
# try to convert string Path object (it might reference a file/folder)
|
||||||
# dont not try to serialize long texts.
|
# dont not try to serialize long texts.
|
||||||
|
Loading…
Reference in New Issue
Block a user