summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-09-17 17:35:31 +0200
committerGitHub <noreply@github.com>2024-09-17 17:35:31 +0200
commit4edb11d058c1f02f27babd390e56caa76bb0e5d4 (patch)
treec7e1f7acf14e1b145310f0219855383b0f466982 /lib
parent68d6e5e5eb6edb224aae9ae6a011feb216869156 (diff)
Fix clones with NoneType hrefs (#3196)
Diffstat (limited to 'lib')
-rw-r--r--lib/elements/clone.py2
1 files changed, 1 insertions, 1 deletions
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