Skip to content

Commit

Permalink
catch TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Nov 17, 2023
1 parent 93bc0ff commit 30f0569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/desispec/spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def to_specutils(self):
meta['resolution_data'] = self.resolution_data[band]
try:
meta['extra'] = self.extra[band]
except KeyError:
except (KeyError, TypeError):
meta['extra'] = None
if i == 0:
#
Expand Down

0 comments on commit 30f0569

Please sign in to comment.