diff --git a/datacontract/catalog/catalog.py b/datacontract/catalog/catalog.py index 288bade94..c06066f45 100644 --- a/datacontract/catalog/catalog.py +++ b/datacontract/catalog/catalog.py @@ -14,7 +14,7 @@ def _get_owner(odcs: OpenDataContractStandard) -> Optional[str]: """Get the owner from ODCS customProperties or team.""" - if odcs.team and odcs.team.name: + if odcs.team and hasattr(odcs.team, "name") and odcs.team.name: return odcs.team.name if odcs.customProperties: for prop in odcs.customProperties: