Minor fix.

This commit is contained in:
Dion Moult
2021-11-16 17:52:08 +11:00
parent 43869c33f6
commit 2120653104
5 changed files with 68 additions and 30 deletions
@@ -81,6 +81,8 @@ def get_type(element):
def get_types(type):
for rel in getattr(type, "Types", []):
return rel.RelatedObjects
for rel in getattr(type, "ObjectTypeOf", []):
return rel.RelatedObjects
return []