From 4edb11d058c1f02f27babd390e56caa76bb0e5d4 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 17 Sep 2024 17:35:31 +0200 Subject: Fix clones with NoneType hrefs (#3196) --- lib/elements/clone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/elements/clone.py') diff --git a/lib/elements/clone.py b/lib/elements/clone.py index 73f3c6c0..82688071 100644 --- a/lib/elements/clone.py +++ b/lib/elements/clone.py @@ -229,7 +229,7 @@ class Clone(EmbroideryElement): def is_clone(node): - if node.tag == SVG_USE_TAG and node.get(XLINK_HREF) and not is_command_symbol(node): + if node.tag == SVG_USE_TAG and node.href is not None and not is_command_symbol(node): return True return False -- cgit v1.2.3