Skip to content

Commit

Permalink
Merge pull request #5 from iterative/fix-a-few-issues
Browse files Browse the repository at this point in the history
Fix dependencies
  • Loading branch information
efiop authored Jan 24, 2020
2 parents 362bc9a + 7a1463a commit 330c4f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pydrive2/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ def _GetList(self):
self['supportsTeamDrives'] = True
self['includeTeamDriveItems'] = True

self.metadata = self.auth.service.files().list(**dict(self)).execute(
http=self.http)
try:
self.metadata = self.auth.service.files().list(**dict(self)).execute(
http=self.http)
except errors.HttpError as error:
raise ApiRequestError(error)

result = []
for file_metadata in self.metadata['items']:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"google-api-python-client >= 1.2",
"oauth2client >= 4.0.0",
"PyYAML >= 3.0",
"httplib2 <= 0.15.0"
],
extras_require={
"tests": ["timeout-decorator"],
Expand Down

0 comments on commit 330c4f9

Please sign in to comment.