Add a check to see if file_client is present (#17330)

This commit is contained in:
IceS2 2024-08-07 17:34:41 +02:00 committed by GitHub
parent 62c33e026c
commit 67634f9695
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,8 @@ class PowerbiSource(DashboardServiceSource):
def close(self):
self.metadata.close()
self.client.file_client.delete_tmp_files()
if self.client.file_client:
self.client.file_client.delete_tmp_files()
def get_filtered_workspaces(self, groups: List[Group]) -> List[Group]:
"""