Skip to content


[processing] Remove extraneous parameter value check
Browse files Browse the repository at this point in the history
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 20, 2018
1 parent b57afa4 commit 85d7400
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions python/plugins/processing/core/
Expand Up @@ -126,14 +126,6 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
raise QgsProcessingException(msg)

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

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

Expand Down

0 comments on commit 85d7400

Please sign in to comment.