From 5be22fe154aedd5661314ec7fd05212fa0c1cf5a Mon Sep 17 00:00:00 2001 From: Ayush Shah Date: Fri, 13 May 2022 15:12:13 +0530 Subject: [PATCH] Add error handling for charts in superset (#4927) --- ingestion/src/metadata/ingestion/source/superset.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ingestion/src/metadata/ingestion/source/superset.py b/ingestion/src/metadata/ingestion/source/superset.py index 6a9ff56cd93..54f22741877 100644 --- a/ingestion/src/metadata/ingestion/source/superset.py +++ b/ingestion/src/metadata/ingestion/source/superset.py @@ -359,7 +359,11 @@ class SupersetSource(Source[Entity]): charts = self.client.fetch_charts(current_page, page_size) current_page += 1 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): return self.status