Skip to content

Commit 4bcdecd

Browse files
committedOct 4, 2016
[processing] fixed iterative execution
fixes #15650
1 parent fb494ba commit 4bcdecd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎python/plugins/processing/gui/AlgorithmExecutor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def runalg(alg, progress=None):
4949
return True
5050
except GeoAlgorithmExecutionException as e:
5151
ProcessingLog.addToLog(sys.exc_info()[0], ProcessingLog.LOG_ERROR)
52-
progress.error(e.msg)
52+
if progress is not None:
53+
progress.error(e.msg)
5354
return False
5455

5556

@@ -87,7 +88,7 @@ def runalgIterating(alg, paramToIter, progress):
8788
out.value = filename
8889
progress.setText(tr('Executing iteration %s/%s...' % (unicode(i), unicode(len(filelist)))))
8990
progress.setPercentage(i * 100 / len(filelist))
90-
if runalg(alg):
91+
if runalg(alg, progress):
9192
handleAlgorithmResults(alg, None, False)
9293
else:
9394
return False

0 commit comments

Comments
 (0)
Please sign in to comment.