Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"""Common imports for generated bigquery client library."""
# pylint:disable=wildcard-import

import logging
import pkgutil

# Protect against environments where apitools library is not available.
Expand All @@ -28,6 +29,9 @@
from apache_beam.io.gcp.internal.clients.bigquery.bigquery_v2_client import *
from apache_beam.io.gcp.internal.clients.bigquery.bigquery_v2_messages import *
except ImportError:
logging.warning(
"apitools not found, and bigquery client libraries are not "
"available despite the import not raising an ImportError.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In an ideal world we'd just throw the exception. I guess this is going away soon anyways, though, so this is probably fine

pass
# pylint: enable=wrong-import-order, wrong-import-position

Expand Down
Loading