Skip to content

Commit 1229ee5

Browse files
committed
Merge pull request #99 from ruxandraburtica/master
Fixed KeyError for get_all_tables
2 parents 0f91d2f + 67af004 commit 1229ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigquery/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ def get_all_tables(self, dataset_id):
12641264
tables_data = self._get_all_tables_for_dataset(dataset_id)
12651265

12661266
tables = []
1267-
for table in tables_data['tables']:
1267+
for table in tables_data.get('tables', []):
12681268
table_name = table.get('tableReference', {}).get('tableId')
12691269
if table_name:
12701270
tables.append(table_name)

0 commit comments

Comments
 (0)