From 19c8736213f02ca64463bbb1ae7a820555150ab1 Mon Sep 17 00:00:00 2001 From: Brandon Wilson Date: Mon, 17 Jun 2024 09:27:59 -0400 Subject: [PATCH] Fix python truth test deprecation warning (#55) --- tools/lottie_markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lottie_markdown.py b/tools/lottie_markdown.py index cbf9b83..d9b2d51 100644 --- a/tools/lottie_markdown.py +++ b/tools/lottie_markdown.py @@ -869,7 +869,7 @@ def run(self, parent, blocks): builder = LottiePlaygroundBuilder(parent, self.schema_data, width=width, height=height, buttons=buttons) md_form = md_element.find("./form") - if md_form: + if md_form is not None: for input in md_form: if not input.attrib.get("title", ""): input.attrib["title"] = input.attrib["name"]