From 4e8ce8562e637cc32d602cc5c0bac1481e5d9205 Mon Sep 17 00:00:00 2001 From: Nidhi Lashkari Date: Tue, 5 Sep 2023 17:06:19 +0530 Subject: [PATCH] fix: catch airbytetracedexception --- .../source_facebook_marketing/source.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/source.py b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/source.py index 204cdfe6679a7..6fff19036f1c8 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/source.py +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/source.py @@ -89,6 +89,8 @@ def check_connection(self, logger: logging.Logger, config: Mapping[str, Any]) -> logger.info(f"Select account {api.account}") except (requests.exceptions.RequestException, ValidationError, FacebookAPIException) as e: return False, f"error: {repr(e)}" + except AirbyteTracedException as traced_exc: + return False, traced_exc.message # make sure that we have valid combination of "action_breakdowns" and "breakdowns" parameters for stream in self.get_custom_insights_streams(api, config):