Skip to content

Commit 6058023

Browse files
committed
[processing] fixed issue with saga optimizations
1 parent df257ea commit 6058023

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

python/plugins/processing/core/GeoAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def execute(self, progress, model = None):
171171
lines.append(errstring)
172172
lines.append(errstring.replace("\n", "|"))
173173
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, lines)
174-
raise GeoAlgorithmExecutionException(str(e))
174+
raise GeoAlgorithmExecutionException(str(e) + "\nSee log for more details")
175175

176176

177177
def runPostExecutionScript(self, progress):

python/plugins/processing/saga/SagaAlgorithm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ def processAlgorithm(self, progress):
229229
if param.datatype == ParameterMultipleInput.TYPE_RASTER:
230230
for layerfile in layers:
231231
if not layerfile.endswith("sgrd"):
232-
commands.append(self.exportRasterLayer(layerfile))
232+
exportCommand = self.exportRasterLayer(layerfile)
233+
if exportCommand is not None:
234+
commands.append()
233235
if self.resample:
234236
commands.append(self.resampleRasterLayer(layerfile));
235237
elif param.datatype == ParameterMultipleInput.TYPE_VECTOR_ANY:

0 commit comments

Comments
 (0)