From a76af3c2ba2239ed5a82a2988dcd801dca3aad7a Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 23 Jun 2025 17:18:30 +0500 Subject: [PATCH] validate IfcApplication.UR2 - check that both version and app name are not None (263d238f9) Otherwise it will be caught by regular validation checks --- src/ifcopenshell-python/ifcopenshell/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index 38708d8018..6fd62f538d 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -694,7 +694,7 @@ def validate_ifc_applications(f: ifcopenshell.file, logger: Union[Logger, json_l app_name: tuple[str, str] = (inst.ApplicationFullName, inst.Version) app_id: str = inst.ApplicationIdentifier - if app_name is not None: + if all(x is not None for x in app_name): if app_name not in used_names: used_names[app_name] = inst else: