Skip to content

Commit b9e4d23

Browse files
author
Jon Wayne Parrott
committed
Address review comments
Change-Id: I957fa992850ed3305dbcad5cd73ed61a7eedb63c
1 parent 6525fb2 commit b9e4d23

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bigquery/cloud-client/snippets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def list_tables(dataset_name, project=None):
6666

6767
if not dataset.exists():
6868
print('Dataset {} does not exist.'.format(dataset_name))
69+
return
6970

7071
tables = []
7172
page_token = None
@@ -95,6 +96,7 @@ def list_rows(dataset_name, table_name, project=None):
9596

9697
if not table.exists():
9798
print('Table {}:{} does not exist.'.format(dataset_name, table_name))
99+
return
98100

99101
# Reload the table so that the schema is available.
100102
table.reload()

bigquery/cloud-client/snippets_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Copyright 2015, Google, Inc.
1+
# Copyright 2016 Google Inc. All Rights Reserved.
2+
#
23
# Licensed under the Apache License, Version 2.0 (the "License");
34
# you may not use this file except in compliance with the License.
45
# You may obtain a copy of the License at
56
#
6-
# http://www.apache.org/licenses/LICENSE-2.0
7+
# http://www.apache.org/licenses/LICENSE-2.0
78
#
89
# Unless required by applicable law or agreed to in writing, software
910
# distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)