Skip to content

Commit

Permalink
Update jdaviz/app.py
Browse files Browse the repository at this point in the history
Co-authored-by: P. L. Lim <[email protected]>
  • Loading branch information
rosteen and pllim authored Dec 17, 2024
1 parent 7957a6c commit 32b3c91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,7 @@ def get_subsets(self, subset_name=None, spectral_only=False,
if isinstance(subset_name, str):
subsets = [subset for subset in subsets if subset.label == subset_name]
if subsets == []:
all_labels = [sg.label for sg in dc.subset_groups]
all_labels.sort()
all_labels = sorted(sg.label for sg in dc.subset_groups)
raise ValueError(f"{subset_name} not in {all_labels}")
else:
raise ValueError("subset_name must be a string.")
Expand Down

0 comments on commit 32b3c91

Please sign in to comment.