Skip to content
Permalink
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 c90e783ca45d3900fc6221548dd1ddc8a5892f24
@@ -162,6 +162,9 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
else:
# auto convert layer references in results to map layers
for out in alg.outputDefinitions():
if out.name() not in results:
continue

if isinstance(out, (QgsProcessingOutputVectorLayer, QgsProcessingOutputRasterLayer, QgsProcessingOutputMapLayer)):
result = results[out.name()]
if not isinstance(result, QgsMapLayer):
Binary file not shown.

0 comments on commit c90e783

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