Skip to content


[processing] Fix some exceptions when running in iterate mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 1, 2018
1 parent be01ea8 commit 08cece2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/plugins/processing/gui/
Expand Up @@ -241,7 +241,8 @@ def executeIterating(alg, parameters, paramToIter, context, feedback):
# store output values to use them later as basenames for all outputs
outputs = {}
for out in alg.destinationParameterDefinitions():
outputs[] = parameters[]
if in parameters:
outputs[] = parameters[]

# now run all the algorithms
for i, f in enumerate(sink_list):
Expand All @@ -250,6 +251,9 @@ def executeIterating(alg, parameters, paramToIter, context, feedback):

parameters[paramToIter] = f
for out in alg.destinationParameterDefinitions():
if not in outputs:

o = outputs[]
parameters[] = QgsProcessingUtils.generateIteratingDestination(o, i, context)
feedback.setProgressText(QCoreApplication.translate('AlgorithmExecutor', 'Executing iteration {0}/{1}…').format(i, len(sink_list)))
Expand Down

0 comments on commit 08cece2

Please sign in to comment.