Skip to content
Browse files

[processing] Fix python runAlgorithm when algorithm has missing optio…

…nal outputs
  • Loading branch information
nyalldawson committed Apr 9, 2018
1 parent 8999abe commit 0c304044124165c8070ccc61278ef4087b04d7be
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/core/
@@ -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 out in results:

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

0 comments on commit 0c30404

Please sign in to comment.
You can’t perform that action at this time.