Skip to content

Commit

Permalink
[processing] fixed iterative execution
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Oct 4, 2016
1 parent fb494ba commit 4bcdecd
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 @@ -49,7 +49,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 @@ -87,7 +88,7 @@ def runalgIterating(alg, paramToIter, progress):
out.value = filename
progress.setText(tr('Executing iteration %s/%s...' % (unicode(i), unicode(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 4bcdecd

Please sign in to comment.