Skip to content
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 20, 2018
1 parent b57afa4 commit 85d740026a473fa9b91cbb46e1b00d81b5fbdfe7
Showing with 0 additions and 8 deletions.
  1. +0 −8 python/plugins/processing/core/
@@ -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)

0 comments on commit 85d7400

Please sign in to comment.