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 60efbb5 commit ee185cce4da32ac19e4be76bd00c7b113eb3b5bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
@@ -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):
Binary file not shown.

0 comments on commit ee185cc

Please sign in to comment.