Skip to content

Commit 85d7400

Browse files
committedAug 20, 2018
[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
1 parent b57afa4 commit 85d7400

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

‎python/plugins/processing/core/Processing.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,6 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
126126
feedback.reportError(msg)
127127
raise QgsProcessingException(msg)
128128

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

0 commit comments

Comments
 (0)
Please sign in to comment.