Skip to content
Permalink
Browse files

[processing] fixed iterative execution

fixes #15650
  • Loading branch information
volaya authored and alexbruy committed Oct 18, 2016
1 parent 7a87fb5 commit b4562d143e6ef140e14b0cb9625ef923412db793
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/gui/AlgorithmExecutor.py
@@ -52,7 +52,8 @@ def runalg(alg, progress=None):
return True
except GeoAlgorithmExecutionException as e:
ProcessingLog.addToLog(sys.exc_info()[0], ProcessingLog.LOG_ERROR)
progress.error(e.msg)
if progress is not None:
progress.error(e.msg)
return False


@@ -89,7 +90,7 @@ def runalgIterating(alg, paramToIter, progress):
out.value = filename
progress.setText(tr('Executing iteration %s/%s...' % (str(i), str(len(filelist)))))
progress.setPercentage(i * 100 / len(filelist))
if runalg(alg):
if runalg(alg, progress):
handleAlgorithmResults(alg, None, False)
else:
return False

0 comments on commit b4562d1

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