Skip to content

Commit 330c4f9

Browse files
authored
Merge pull request #5 from iterative/fix-a-few-issues
Fix dependencies
2 parents 362bc9a + 7a1463a commit 330c4f9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

pydrive2/files.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@ def _GetList(self):
6565
self['supportsTeamDrives'] = True
6666
self['includeTeamDriveItems'] = True
6767

68-
self.metadata = self.auth.service.files().list(**dict(self)).execute(
69-
http=self.http)
68+
try:
69+
self.metadata = self.auth.service.files().list(**dict(self)).execute(
70+
http=self.http)
71+
except errors.HttpError as error:
72+
raise ApiRequestError(error)
7073

7174
result = []
7275
for file_metadata in self.metadata['items']:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"google-api-python-client >= 1.2",
1717
"oauth2client >= 4.0.0",
1818
"PyYAML >= 3.0",
19+
"httplib2 <= 0.15.0"
1920
],
2021
extras_require={
2122
"tests": ["timeout-decorator"],

0 commit comments

Comments
 (0)