Skip to content

Commit 64134ac

Browse files
committed
apiclient import fix
1 parent 5a2dd15 commit 64134ac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/io/gbq.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,11 @@ def get_application_default_credentials(self):
181181
from googleapiclient.discovery import build
182182
from googleapiclient.errors import HttpError
183183
except ImportError:
184+
if not oauth2client_library_imported:
185+
return None
184186
from apiclient.discovery import build
185187
from apiclient.errors import HttpError
186188

187-
if not oauth2client_library_imported:
188-
return None
189-
190189
credentials = None
191190
try:
192191
credentials = GoogleCredentials.get_application_default()

0 commit comments

Comments
 (0)