Skip to content

Commit 0bd0c7a

Browse files
authored
Merge pull request #3232 from iterative/2865
Remove usage of google-api-python-client deps
2 parents c2def08 + 10399e8 commit 0bd0c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dvc/remote/gdrive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ class GDriveMissedCredentialKeyError(DvcException):
3333

3434
@decorator
3535
def _wrap_pydrive_retriable(call):
36-
from apiclient import errors
3736
from pydrive2.files import ApiRequestError
3837

3938
try:
4039
result = call()
41-
except (ApiRequestError, errors.HttpError) as exception:
40+
except ApiRequestError as exception:
4241
retry_codes = ["403", "500", "502", "503", "504"]
4342
if any(
4443
"HttpError {}".format(code) in str(exception)
@@ -210,6 +209,7 @@ def drive(self):
210209
GoogleAuth.DEFAULT_SETTINGS["get_refresh_token"] = True
211210
GoogleAuth.DEFAULT_SETTINGS["oauth_scope"] = [
212211
"https://www.googleapis.com/auth/drive",
212+
# drive.appdata grants access to appDataFolder GDrive directory
213213
"https://www.googleapis.com/auth/drive.appdata",
214214
]
215215

0 commit comments

Comments
 (0)