Skip to content

Commit

Permalink
Fix exception in create constant raster alg
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 14, 2018
1 parent a80f7ab commit bde8b43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bde8b43

Please sign in to comment.