aboutsummaryrefslogtreecommitdiffhomepage
path: root/tap_google_sheets
diff options
context:
space:
mode:
authorKyle Allan <KAllan357@gmail.com>2020-07-15 09:57:50 -0400
committerGitHub <noreply@github.com>2020-07-15 09:57:50 -0400
commit516c20822a166b79161191a72834cd49998ad4b9 (patch)
tree592983ffab32f33b75c848de83134b6c00448985 /tap_google_sheets
parent5fc2ead55ea6a67c13e3caeec315454148be593d (diff)
downloadtap-google-sheets-516c20822a166b79161191a72834cd49998ad4b9.tar.gz
tap-google-sheets-516c20822a166b79161191a72834cd49998ad4b9.tar.zst
tap-google-sheets-516c20822a166b79161191a72834cd49998ad4b9.zip
return an empty list when values is missing (#17)
Diffstat (limited to 'tap_google_sheets')
-rw-r--r--tap_google_sheets/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tap_google_sheets/sync.py b/tap_google_sheets/sync.py
index 3e26bc4..26c2d19 100644
--- a/tap_google_sheets/sync.py
+++ b/tap_google_sheets/sync.py
@@ -505,7 +505,7 @@ def sync(client, config, catalog, state):
505 spreadsheet_id=spreadsheet_id, 505 spreadsheet_id=spreadsheet_id,
506 range_rows=range_rows) 506 range_rows=range_rows)
507 # Data is returned as a list of arrays, an array of values for each row 507 # Data is returned as a list of arrays, an array of values for each row
508 sheet_data_rows = sheet_data.get('values') 508 sheet_data_rows = sheet_data.get('values', [])
509 509
510 # Transform batch of rows to JSON with keys for each column 510 # Transform batch of rows to JSON with keys for each column
511 sheet_data_tf, row_num = transform_sheet_data( 511 sheet_data_tf, row_num = transform_sheet_data(