Skip to content

Commit cd76dde

Browse files
authored
Prepare for 0.2.1 release. (#94)
* Prepare for 0.2.1 release. * Catch ImportError instead of bare except. Fixes lint errors in CI builds.
1 parent 9eb9d77 commit cd76dde

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/source/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
0.2.1 / 2017-??-??
4+
0.2.1 / 2017-11-27
55
------------------
66

77
- :func:`read_gbq` now raises ``QueryTimeout`` if the request exceeds the ``query.timeoutMs`` value specified in the BigQuery configuration. (:issue:`76`)

pandas_gbq/gbq.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def process_insert_errors(self, insert_errors):
530530
def run_query(self, query, **kwargs):
531531
try:
532532
from googleapiclient.errors import HttpError
533-
except:
533+
except ImportError:
534534
from apiclient.errors import HttpError
535535
from google.auth.exceptions import RefreshError
536536

@@ -663,7 +663,7 @@ def run_query(self, query, **kwargs):
663663
def load_data(self, dataframe, dataset_id, table_id, chunksize):
664664
try:
665665
from googleapiclient.errors import HttpError
666-
except:
666+
except ImportError:
667667
from apiclient.errors import HttpError
668668

669669
job_id = uuid.uuid4().hex
@@ -737,7 +737,7 @@ def schema(self, dataset_id, table_id):
737737

738738
try:
739739
from googleapiclient.errors import HttpError
740-
except:
740+
except ImportError:
741741
from apiclient.errors import HttpError
742742

743743
try:
@@ -1162,7 +1162,7 @@ def __init__(self, project_id, dataset_id, reauth=False, verbose=False,
11621162
private_key=None):
11631163
try:
11641164
from googleapiclient.errors import HttpError
1165-
except:
1165+
except ImportError:
11661166
from apiclient.errors import HttpError
11671167
self.http_error = HttpError
11681168
self.dataset_id = dataset_id
@@ -1261,7 +1261,7 @@ def __init__(self, project_id, reauth=False, verbose=False,
12611261
private_key=None):
12621262
try:
12631263
from googleapiclient.errors import HttpError
1264-
except:
1264+
except ImportError:
12651265
from apiclient.errors import HttpError
12661266
self.http_error = HttpError
12671267
super(_Dataset, self).__init__(project_id, reauth, verbose,

0 commit comments

Comments
 (0)