Skip to content

Commit

Permalink
fix: Let Section.from_string handle None
Browse files Browse the repository at this point in the history
These lines were removed---or somehow missing. This is probably not the
best way to do this, but it's expected by DRAGONS.
  • Loading branch information
teald committed Dec 18, 2024
1 parent b8e08b0 commit 5142a40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions astrodata/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ def from_shape(value):
@staticmethod
def from_string(value):
"""Produce a Section object from a string."""
if value is None:
return None

return Section(
*[
y
Expand Down

0 comments on commit 5142a40

Please sign in to comment.