From 516c20822a166b79161191a72834cd49998ad4b9 Mon Sep 17 00:00:00 2001 From: Kyle Allan Date: Wed, 15 Jul 2020 09:57:50 -0400 Subject: return an empty list when values is missing (#17) --- tap_google_sheets/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): spreadsheet_id=spreadsheet_id, range_rows=range_rows) # Data is returned as a list of arrays, an array of values for each row - sheet_data_rows = sheet_data.get('values') + sheet_data_rows = sheet_data.get('values', []) # Transform batch of rows to JSON with keys for each column sheet_data_tf, row_num = transform_sheet_data( -- cgit v1.2.3