Skip to content

Commit

Permalink
incorporate PR 180 from by MaxRis into this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
shcheklein committed Jan 24, 2020
1 parent c1f54c4 commit 7a1463a
Showing 1 changed file with 5 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

0 comments on commit 7a1463a

Please sign in to comment.