diff --git a/pydrive/files.py b/pydrive/files.py index 1d40304..2916d3f 100644 --- a/pydrive/files.py +++ b/pydrive/files.py @@ -64,9 +64,11 @@ def _GetList(self): self['corpus'] = 'DEFAULT' 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']: