mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 09:22:14 +00:00
Add error handling for charts in superset (#4927)
This commit is contained in:
parent
d194a40445
commit
5be22fe154
@ -359,7 +359,11 @@ class SupersetSource(Source[Entity]):
|
|||||||
charts = self.client.fetch_charts(current_page, page_size)
|
charts = self.client.fetch_charts(current_page, page_size)
|
||||||
current_page += 1
|
current_page += 1
|
||||||
for chart_json in charts["result"]:
|
for chart_json in charts["result"]:
|
||||||
yield from self._build_chart(chart_json)
|
try:
|
||||||
|
yield from self._build_chart(chart_json)
|
||||||
|
except Exception as err:
|
||||||
|
logger.debug(traceback.format_exc())
|
||||||
|
logger.error(err)
|
||||||
|
|
||||||
def get_status(self):
|
def get_status(self):
|
||||||
return self.status
|
return self.status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user