mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-23 17:30:35 +00:00
fix: handle None owner
(#10497)
This commit is contained in:
parent
dccc139aad
commit
cea10e8301
@ -245,7 +245,7 @@ class TableauSource(DashboardServiceSource):
|
|||||||
Returns:
|
Returns:
|
||||||
Optional[EntityReference]
|
Optional[EntityReference]
|
||||||
"""
|
"""
|
||||||
if dashboard_details.owner.email:
|
if dashboard_details.owner and dashboard_details.owner.email:
|
||||||
user = self.metadata.get_user_by_email(dashboard_details.owner.email)
|
user = self.metadata.get_user_by_email(dashboard_details.owner.email)
|
||||||
if user:
|
if user:
|
||||||
return EntityReference(id=user.id.__root__, type="user")
|
return EntityReference(id=user.id.__root__, type="user")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user