mirror of
https://github.com/clearml/clearml
synced 2025-02-12 07:35:08 +00:00
Fix artifact preview has no truth value
This commit is contained in:
parent
149d55442d
commit
0ebed74968
@ -319,7 +319,7 @@ class Artifacts(object):
|
|||||||
raise ValueError("Artifact by the name of {} is already registered, use register_artifact".format(name))
|
raise ValueError("Artifact by the name of {} is already registered, use register_artifact".format(name))
|
||||||
|
|
||||||
# cast preview to string
|
# cast preview to string
|
||||||
if preview:
|
if preview not in (None, False):
|
||||||
preview = str(preview)
|
preview = str(preview)
|
||||||
|
|
||||||
# evaluate lazy proxy object
|
# evaluate lazy proxy object
|
||||||
|
Loading…
Reference in New Issue
Block a user