diff --git a/TimeSeries/s2theia.py b/TimeSeries/s2theia.py index c218936fefd93871bd39d6acd3f88dc990bcf82e..fa6665ddf9e7000572a87326e363eb341d870c4a 100644 --- a/TimeSeries/s2theia.py +++ b/TimeSeries/s2theia.py @@ -811,7 +811,7 @@ class S2TheiaPipeline: d = datetime.datetime.strptime(align_to, '%Y%m%d') t.rigid_align(ref_date=align_to, match_band=align_using_band-1) except: - warnings.warn("Provided string is not a valid date nor a valid file.") + raise ValueError("Provided string is not a valid date nor a valid file.") elif align_to is None: t.rigid_align(match_band=align_using_band-1) t.reproject(self.output_epsg)