mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
validate IfcApplication.UR2 - check that both version and app name are not None (263d238f9)
Otherwise it will be caught by regular validation checks
This commit is contained in:
@@ -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_name: tuple[str, str] = (inst.ApplicationFullName, inst.Version)
|
||||||
app_id: str = inst.ApplicationIdentifier
|
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:
|
if app_name not in used_names:
|
||||||
used_names[app_name] = inst
|
used_names[app_name] = inst
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user