diff --git a/pydrive2/files.py b/pydrive2/files.py index e363847c..f37018ff 100644 --- a/pydrive2/files.py +++ b/pydrive2/files.py @@ -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']: diff --git a/setup.py b/setup.py index e69850df..e997a638 100644 --- a/setup.py +++ b/setup.py @@ -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"],