diff --git a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py index 2ce7be5315..ab98ad1e00 100644 --- a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py +++ b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py @@ -263,7 +263,6 @@ def _aperture_items_changed(self, msg): self._extract_in_new_instance(subset_lbl=subset_lbl, auto_update=True, add_data=True) except Exception: - raise msg = SnackbarMessage( f"Automatic {self.resulting_product_name} extraction for {subset_lbl} failed", # noqa color='error', sender=self, timeout=10000) @@ -459,14 +458,10 @@ def _extract_from_aperture(self, cube, uncert_cube, mask_cube, aperture, subset_id=aperture.selected, cls=NDDataArray ) if uncert_cube: - try: - # Subset may not be linked to the uncertainty cube at this point?? - uncertainties = uncert_cube.get_subset_object( - subset_id=aperture.selected, cls=StdDevUncertainty - ) - except ValueError: - raise - uncertainties = None + # Subset may not be linked to the uncertainty cube at this point?? + uncertainties = uncert_cube.get_subset_object( + subset_id=aperture.selected, cls=StdDevUncertainty + ) else: uncertainties = None