mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-07 00:03:52 -05:00
Rise an exception instead of an info message
This commit is contained in:
parent
5a721c47c0
commit
3945c73b84
@ -77,6 +77,7 @@ class fillnodata(GdalAlgorithm):
|
|||||||
if GdalUtils.version() >= 3040000:
|
if GdalUtils.version() >= 3040000:
|
||||||
nomask_param.setFlags(nomask_param.flags() | QgsProcessingParameterDefinition.FlagHidden)
|
nomask_param.setFlags(nomask_param.flags() | QgsProcessingParameterDefinition.FlagHidden)
|
||||||
self.addParameter(nomask_param)
|
self.addParameter(nomask_param)
|
||||||
|
|
||||||
self.addParameter(QgsProcessingParameterRasterLayer(self.MASK_LAYER,
|
self.addParameter(QgsProcessingParameterRasterLayer(self.MASK_LAYER,
|
||||||
self.tr('Validity mask'),
|
self.tr('Validity mask'),
|
||||||
optional=True))
|
optional=True))
|
||||||
@ -144,7 +145,7 @@ class fillnodata(GdalAlgorithm):
|
|||||||
if self.parameterAsBoolean(parameters, self.NO_MASK, context):
|
if self.parameterAsBoolean(parameters, self.NO_MASK, context):
|
||||||
if GdalUtils.version() >= 3040000:
|
if GdalUtils.version() >= 3040000:
|
||||||
# The -nomask option is no longer supported since GDAL 3.4.0 https://github.com/OSGeo/gdal/pull/4201
|
# The -nomask option is no longer supported since GDAL 3.4.0 https://github.com/OSGeo/gdal/pull/4201
|
||||||
feedback.pushInfo(self.tr('The -nomask option is no longer supported since GDAL 3.4.0'))
|
raise QgsProcessingException(self.tr('The -nomask option is no longer supported since GDAL 3.4.0'))
|
||||||
else:
|
else:
|
||||||
arguments.append('-nomask')
|
arguments.append('-nomask')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user