Skip to content

Commit

Permalink
fix get_alt_export_link
Browse files Browse the repository at this point in the history
  • Loading branch information
AddisonSchiller authored and cslzchen committed Dec 5, 2017
1 parent 7b9d17c commit 4be8f0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion waterbutler/providers/googledrive/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def get_alt_download_extension(metadata):
def get_alt_export_link(metadata):
format_type = get_format(metadata)
export_links = metadata['exportLinks']
return export_links.get(format_type['alt_type'], None) or export_links[format_type['type']]
if format_type.get('alt_type'):
return export_links.get(format_type['alt_type'])
else:
return export_links[format_type['type']]


def get_export_link(metadata):
Expand Down

0 comments on commit 4be8f0e

Please sign in to comment.