Bug: TypeError when dashboards field is not present in a workspace response (#10568)

This commit is contained in:
Nahuel 2023-03-14 09:58:53 +01:00 committed by GitHub
parent f8ce1a6b75
commit ffdd911785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ class PowerbiSource(DashboardServiceSource):
"""
Get List of all dashboards
"""
return self.context.workspace.get("dashboards")
return self.context.workspace.get("dashboards", [])
def get_dashboard_name(self, dashboard: dict) -> str:
"""