Skip to content

Commit

Permalink
[processing] fixed issue with saga optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Sep 15, 2013
1 parent df257ea commit 6058023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/GeoAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def execute(self, progress, model = None):
lines.append(errstring)
lines.append(errstring.replace("\n", "|"))
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, lines)
raise GeoAlgorithmExecutionException(str(e))
raise GeoAlgorithmExecutionException(str(e) + "\nSee log for more details")


def runPostExecutionScript(self, progress):
Expand Down
4 changes: 3 additions & 1 deletion python/plugins/processing/saga/SagaAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ def processAlgorithm(self, progress):
if param.datatype == ParameterMultipleInput.TYPE_RASTER:
for layerfile in layers:
if not layerfile.endswith("sgrd"):
commands.append(self.exportRasterLayer(layerfile))
exportCommand = self.exportRasterLayer(layerfile)
if exportCommand is not None:
commands.append()
if self.resample:
commands.append(self.resampleRasterLayer(layerfile));
elif param.datatype == ParameterMultipleInput.TYPE_VECTOR_ANY:
Expand Down

0 comments on commit 6058023

Please sign in to comment.