Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
fix metadata route
Browse files Browse the repository at this point in the history
  • Loading branch information
richiverse committed Mar 20, 2019
1 parent e72e0be commit c9367e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas_ext/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ def gdrive_metadata(url: str, fetch_all=False) -> object:

try:
metadata['folder_id'] = (
None if 'parents' not in metadata
None if not metadata['parents']
else metadata['parents'][0]['id']
)
except IndexError:
raise('The file must reside in a folder that is shared with '
'pydrive@namely.com.')
'<my-bot>@<my-domain>.com.')

if 'lastModifyingUser' in metadata:
metadata['last_mod_by_email'] = (
Expand Down

0 comments on commit c9367e9

Please sign in to comment.