From c1f54c4d02db1485aa8608e4a96a644949ab39db Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Thu, 23 Jan 2020 17:17:35 -0800 Subject: [PATCH 1/2] not compatible with >=0.16 due to redirects handling --- setup.py | 1 + 1 file changed, 1 insertion(+) 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"], From 7a1463a7a3725571aff445e840657eec8dcf19df Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Thu, 23 Jan 2020 17:21:24 -0800 Subject: [PATCH 2/2] incorporate PR 180 from by MaxRis into this repo --- pydrive2/files.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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']: