Skip to content

Commit b3521a4

Browse files
committed
[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)
1 parent 2684216 commit b3521a4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

python/plugins/processing/core/Processing.py

-8
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,6 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
124124
feedback.reportError(msg)
125125
raise QgsProcessingException(msg)
126126

127-
# check for any mandatory parameters which were not specified
128-
for param in alg.parameterDefinitions():
129-
if param.name() not in parameters:
130-
if not param.flags() & QgsProcessingParameterDefinition.FlagOptional:
131-
msg = Processing.tr('Error: Missing parameter value for parameter {0}.').format(param.name())
132-
feedback.reportError(msg)
133-
raise QgsProcessingException(msg)
134-
135127
if context is None:
136128
context = dataobjects.createContext(feedback)
137129

0 commit comments

Comments
 (0)