Skip to content

Commit

Permalink
Fix failing unit test due to RuntimeError vs TypeError change
Browse files Browse the repository at this point in the history
  • Loading branch information
emolter committed Mar 7, 2025
1 parent 6f047f4 commit eb17e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwst/resample/resample_spec_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def process(self, input_data):

elif len(input_models[0].data.shape) != 2:
# resample can only handle 2D images, not 3D cubes, etc
raise RuntimeError(f"Input {input_models[0]} is not a 2D image.")
raise TypeError(f"Input {input_models[0]} is not a 2D image.")

else:
# result is a SlitModel
Expand Down

0 comments on commit eb17e29

Please sign in to comment.