Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(google-ads): handle unexpected errors during validation #172

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ def check_connection(self, logger: logging.Logger, config: Mapping[str, Any]) ->
error_messages = ", ".join([error.message for error in exception.failure.errors])
logger.error(traceback.format_exc())
return False, f"Unable to connect to Google Ads API with the provided configuration - {error_messages}"
except Exception as e:
# fallback for all the unhanded exceptions
logger.error(traceback.format_exc())
return False, f"Unable to connect to Google Ads API with the provided configuration - {repr(e)}"

def streams(self, config: Mapping[str, Any]) -> List[Stream]:
config = self._validate_and_transform(config)
Expand Down
Loading