mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Minor fix in doc utility for entities which have no predefined types
This commit is contained in:
@@ -151,7 +151,7 @@ def get_predefined_type_doc(version, entity, predefined_type):
|
||||
if db:
|
||||
entity = db["entities"].get(entity)
|
||||
if entity:
|
||||
return entity["predefined_types"].get(predefined_type)
|
||||
return entity.get("predefined_types", {}).get(predefined_type)
|
||||
|
||||
|
||||
def get_property_set_doc(version, pset):
|
||||
|
||||
Reference in New Issue
Block a user