diff --git a/romancal/resample/resample.py b/romancal/resample/resample.py index 1865c099c..56a6332bc 100644 --- a/romancal/resample/resample.py +++ b/romancal/resample/resample.py @@ -98,7 +98,7 @@ def __init__( self.weight_type = wht_type self.good_bits = good_bits self.in_memory = kwargs.get("in_memory", True) - if hasattr(input_models, "target"): + if "target" in input_models.asn: self.location_name = input_models.asn["target"] else: self.location_name = "None"