Skip to content
Permalink
Browse files

[processing] Remove extraneous parameter value check

The subsequent call to checkParameterValues covers the same checks,
but in a more flexible way.

Refs discussion at qgis/QGIS-Documentation#2797
  • Loading branch information
nyalldawson committed Aug 19, 2018
1 parent b57afa4 commit 85d740026a473fa9b91cbb46e1b00d81b5fbdfe7
Showing with 0 additions and 8 deletions.
  1. +0 −8 python/plugins/processing/core/Processing.py
@@ -126,14 +126,6 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
feedback.reportError(msg)
raise QgsProcessingException(msg)

# check for any mandatory parameters which were not specified
for param in alg.parameterDefinitions():
if param.name() not in parameters:
if not param.flags() & QgsProcessingParameterDefinition.FlagOptional:
msg = Processing.tr('Error: Missing parameter value for parameter {0}.').format(param.name())
feedback.reportError(msg)
raise QgsProcessingException(msg)

if context is None:
context = dataobjects.createContext(feedback)

0 comments on commit 85d7400

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