Skip to content
Permalink
Browse files

Fix exception in create constant raster alg

  • Loading branch information
nyalldawson committed Jun 14, 2018
1 parent a80f7ab commit bde8b4303fe098e868a7a3c2a9315ad80dfa484c
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/qgis/CreateConstantRaster.py
@@ -99,7 +99,7 @@ def processAlgorithm(self, parameters, context, feedback):
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)

0 comments on commit bde8b43

Please sign in to comment.
You can’t perform that action at this time.