diff --git a/jwst/resample/resample_spec_step.py b/jwst/resample/resample_spec_step.py index a94dc86ca5..ac1f64f29e 100755 --- a/jwst/resample/resample_spec_step.py +++ b/jwst/resample/resample_spec_step.py @@ -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