diff --git a/CHANGELOG.md b/CHANGELOG.md index 06613778..c4475214 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). * Allow graceful failure with no files in jhuapl load functions * New window needs to be integer for calculate_imf_steadiness * Fixed a bug where cdas_download may drop the requested end date file + * Fixed a bug where cdas_list_remote_files errored without remote data * Documentation * Added example of how to export data for archival * Updated documentation refs diff --git a/pysatNASA/instruments/methods/cdaweb.py b/pysatNASA/instruments/methods/cdaweb.py index 5bd2261f..04d37c5e 100644 --- a/pysatNASA/instruments/methods/cdaweb.py +++ b/pysatNASA/instruments/methods/cdaweb.py @@ -981,7 +981,9 @@ def cdas_list_remote_files(tag='', inst_id='', start=None, stop=None, og_files = cdas.get_original_files(dataset=dataset, start=start, end=stop) - if series_out: + if og_files[1] is None: + file_list = pds.Series(dtype=str) if series_out else [] + elif series_out: name_list = [os.path.basename(f['Name']) for f in og_files[1]] t_stamp = [pds.Timestamp(f['StartTime'][:10]) for f in og_files[1]] file_list = pds.Series(data=name_list, index=t_stamp)