mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix exception in create constant raster alg
This commit is contained in:
parent
a80f7ab980
commit
bde8b4303f
@ -99,7 +99,7 @@ class CreateConstantRaster(QgisAlgorithm):
|
||||
if provider is None:
|
||||
raise QgsProcessingException(self.tr("Could not create raster output: {}").format(outputFile))
|
||||
if not provider.isValid():
|
||||
raise QgsProcessingException(self.tr("Could not create raster output {}: {}").arg(outputFile,
|
||||
raise QgsProcessingException(self.tr("Could not create raster output {}: {}").format(outputFile,
|
||||
provider.error().message(QgsErrorMessage.Text)))
|
||||
|
||||
provider.setNoDataValue(1, -9999)
|
||||
|
Loading…
x
Reference in New Issue
Block a user