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

Commit ce00c52

Browse files
committed
Bug in p.dataset_metadata incorrecrtly requiring datasetID parameter
1 parent b842d12 commit ce00c52

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

podaac/podaac.py

-3
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,8 @@ def dataset_metadata(self, dataset_id='', short_name='', _format='iso'):
6161
url = self.URL + 'metadata/dataset/?'
6262
if dataset_id:
6363
url = url + 'datasetId=' + dataset_id
64-
else:
65-
raise Exception("Dataset Id is required")
6664
if short_name:
6765
url = url + '&shortName=' + short_name
68-
6966
url = url + '&format=' + _format
7067
metadata = requests.get(url, headers=HEADERS)
7168
status_codes = [404, 400, 503, 408]

0 commit comments

Comments
 (0)