BIM: satisfy github-advanced-security

Signed-off-by: Gaël Écorchard <gael@km-robotics.cz>
This commit is contained in:
Gaël Écorchard
2025-06-25 07:40:09 +02:00
parent 1c13623a06
commit 681be5b49c

View File

@@ -54,6 +54,7 @@ else:
return text
# \endcond
def xml_escape(text: str, entities: dict[str, str] = None) -> str:
"""Escape text for XML.
@@ -197,6 +198,7 @@ def read(filename):
# be within [0, 1]. OK.
setattr(fc_mat, fc_field, getattr(material_node.effect, col_field))
except ValueError:
# The collada value is not compatible with FreeCAD.
pass
except TypeError:
# color is not a tuple but a texture.