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

(cherry-picked from 85d7400)
  • Loading branch information
nyalldawson committed Aug 21, 2018
1 parent 2684216 commit b3521a4aba1fa200a9b1f916acf77c3c547395c4
Showing 1 changed file with 0 additions and 8 deletions.
@@ -124,14 +124,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 b3521a4

Please sign in to comment.