diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index dc35067e..e9998a59 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -1,7 +1,7 @@ Changelog ========= -0.2.1 / 2017-??-?? +0.2.1 / 2017-11-27 ------------------ - :func:`read_gbq` now raises ``QueryTimeout`` if the request exceeds the ``query.timeoutMs`` value specified in the BigQuery configuration. (:issue:`76`) diff --git a/pandas_gbq/gbq.py b/pandas_gbq/gbq.py index 9473b082..da7dd21d 100644 --- a/pandas_gbq/gbq.py +++ b/pandas_gbq/gbq.py @@ -530,7 +530,7 @@ def process_insert_errors(self, insert_errors): def run_query(self, query, **kwargs): try: from googleapiclient.errors import HttpError - except: + except ImportError: from apiclient.errors import HttpError from google.auth.exceptions import RefreshError @@ -663,7 +663,7 @@ def run_query(self, query, **kwargs): def load_data(self, dataframe, dataset_id, table_id, chunksize): try: from googleapiclient.errors import HttpError - except: + except ImportError: from apiclient.errors import HttpError job_id = uuid.uuid4().hex @@ -737,7 +737,7 @@ def schema(self, dataset_id, table_id): try: from googleapiclient.errors import HttpError - except: + except ImportError: from apiclient.errors import HttpError try: @@ -1162,7 +1162,7 @@ def __init__(self, project_id, dataset_id, reauth=False, verbose=False, private_key=None): try: from googleapiclient.errors import HttpError - except: + except ImportError: from apiclient.errors import HttpError self.http_error = HttpError self.dataset_id = dataset_id @@ -1261,7 +1261,7 @@ def __init__(self, project_id, reauth=False, verbose=False, private_key=None): try: from googleapiclient.errors import HttpError - except: + except ImportError: from apiclient.errors import HttpError self.http_error = HttpError super(_Dataset, self).__init__(project_id, reauth, verbose,