Skip to content


[processing] Fix python runAlgorithm when algorithm has missing optio…
Browse files Browse the repository at this point in the history
…nal outputs

(cherry-picked from ee185cc)
  • Loading branch information
nyalldawson committed Apr 10, 2018
1 parent 09f5d52 commit 1614638
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/core/
Expand Up @@ -162,6 +162,9 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
# auto convert layer references in results to map layers
for out in alg.outputDefinitions():
if not in results:

if isinstance(out, (QgsProcessingOutputVectorLayer, QgsProcessingOutputRasterLayer, QgsProcessingOutputMapLayer)):
result = results[]
if not isinstance(result, QgsMapLayer):
Expand Down

0 comments on commit 1614638

Please sign in to comment.