Skip to content

Commit

Permalink
Merge pull request #151 from rudderlabs/fix.fb_ads_validation
Browse files Browse the repository at this point in the history
ETL-114 fix: catch airbytetracedexception
  • Loading branch information
nidhilashkari17 authored Sep 5, 2023
2 parents 111fd23 + 4e8ce85 commit 1725c8d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1725c8d

Please sign in to comment.