Skip to content

Commit

Permalink
handle no records exception for sitemaps (#38)
Browse files Browse the repository at this point in the history
* handle no records exception for sitemaps

* changelog and bump version
  • Loading branch information
kethan1122 committed Apr 4, 2023
1 parent 1e1c88e commit 2d4daa0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.2.1
* Handle no data exception for sitemaps stream [#38](https://github.com/singer-io/tap-google-search-console/pull/38)

## 0.2.0
* Code Refactoring [#32](https://github.com/singer-io/tap-google-search-console/pull/32)
* Sets default value for `ATTRIBUTION_DAYS` parameter as 4 days
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="tap-google-search-console",
version="0.2.0",
version="0.2.1",
description="Singer.io tap for extracting data from the Google Search Console API",
author="jeff.huth@bytecode.io",
classifiers=["Programming Language :: Python :: 3 :: Only"],
Expand Down
2 changes: 2 additions & 0 deletions tap_google_search_console/streams/sitemaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def get_records(self) -> Iterator[Dict]:
continue
path = encode_and_format_url(site, self.path)
data = self.client.get(path)
if not data:
return transformed_data
transformed_data.extend(
iter(transform_json(data, self.tap_stream_id, site=site, path=self.data_key).get(self.data_key, []))
)
Expand Down

0 comments on commit 2d4daa0

Please sign in to comment.