Skip to content
Permalink
Browse files
[processing] fixed iterative execution
fixes #15650
  • Loading branch information
volaya committed Oct 4, 2016
1 parent fb494ba commit 4bcdecd3cf87dd191c27bcb4d6419191f5ff8cb2
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/gui/AlgorithmExecutor.py
@@ -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


@@ -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

0 comments on commit 4bcdecd

Please sign in to comment.