From 0ebed7496849afe00d5197dcd9ae728774e8b43e Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 13 Jan 2022 11:55:38 +0200 Subject: [PATCH] Fix artifact preview has no truth value --- clearml/binding/artifacts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/binding/artifacts.py b/clearml/binding/artifacts.py index 76ce86e2..df70645b 100644 --- a/clearml/binding/artifacts.py +++ b/clearml/binding/artifacts.py @@ -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