Check Brick library location exists

This commit is contained in:
rileywong311
2023-08-18 16:32:53 -07:00
committed by Riley Wong
parent 7a3ad6c3a1
commit d53641ce5e
@@ -146,7 +146,7 @@ class BrickschemaReferencesData:
for library in ifc.by_type("IfcLibraryInformation"):
if tool.Ifc.get_schema() == "IFC2X3":
results.append((str(library.id()), library.Name or "Unnamed", ""))
elif ".ttl" in library.Location:
elif library.Location and ".ttl" in library.Location:
results.append((str(library.id()), library.Name or "Unnamed", ""))
return results