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

Commit

Permalink
ISSUE-104 extract_l4_granule granule name split results in IndexError…
Browse files Browse the repository at this point in the history
…: list index out of range
  • Loading branch information
lewismc committed Apr 2, 2017
1 parent 29b2c0a commit d56d9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podaac/podaac.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def extract_l4_granule(self, dataset_id='', path=''):
root = ET.fromstring(search_data.encode('utf-8'))
url = root[12][7].attrib['href']
granule_name = root[12][0].text
granule_name = granule_name.split('\t')[3][:-1]
granule_name = granule_name.rsplit(".", 1)[0]
if path == '':
path = os.path.join(os.path.dirname(__file__), granule_name)
else:
Expand Down

0 comments on commit d56d9de

Please sign in to comment.