mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +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))
|
||||
|
||||
# cast preview to string
|
||||
if preview:
|
||||
if preview not in (None, False):
|
||||
preview = str(preview)
|
||||
|
||||
# evaluate lazy proxy object
|
||||
|
Loading…
Reference in New Issue
Block a user