Skip to content

Commit

Permalink
[processing] fixed iterative execution
Browse files Browse the repository at this point in the history
fixes #15650
  • Loading branch information
volaya authored and alexbruy committed Oct 18, 2016
1 parent 7a87fb5 commit b4562d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/gui/AlgorithmExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b4562d1

Please sign in to comment.