Fix clones with NoneType hrefs (#3196)

pull/3213/head dev-build-kaalleen-gradient-stops
Kaalleen 2024-09-17 17:35:31 +02:00 zatwierdzone przez GitHub
rodzic 68d6e5e5eb
commit 4edb11d058
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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