diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-09-17 17:35:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-17 17:35:31 +0200 |
| commit | 4edb11d058c1f02f27babd390e56caa76bb0e5d4 (patch) | |
| tree | c7e1f7acf14e1b145310f0219855383b0f466982 /lib | |
| parent | 68d6e5e5eb6edb224aae9ae6a011feb216869156 (diff) | |
Fix clones with NoneType hrefs (#3196)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/elements/clone.py | 2 |
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 |
