Skip to content
Permalink
Browse files

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

…nal outputs

(cherry-picked from ee185cc)
  • Loading branch information
nyalldawson committed Apr 10, 2018
1 parent 09f5d52 commit 161463818e258ca9634fa684f008f2564f7876f3
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/core/Processing.py
@@ -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):

0 comments on commit 1614638

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