diff --git a/jdaviz/configs/mosviz/plugins/parsers.py b/jdaviz/configs/mosviz/plugins/parsers.py index b35b800a32..f10fcb90fe 100644 --- a/jdaviz/configs/mosviz/plugins/parsers.py +++ b/jdaviz/configs/mosviz/plugins/parsers.py @@ -104,7 +104,10 @@ def mos_spec1d_parser(app, data_obj, data_labels=None): """ # If providing a file path, parse it using the specutils io tooling if _check_is_file(data_obj): - data_obj = [Spectrum1D.read(data_obj)] + try: + data_obj = [Spectrum1D.read(data_obj)] + except IORegistryError: + data_obj = SpectrumList.read(data_obj) if isinstance(data_labels, str): data_labels = [data_labels]