Skip to content

Commit

Permalink
[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

(cherry-picked from 85d7400)
  • Loading branch information
nyalldawson committed Aug 21, 2018
1 parent 2684216 commit b3521a4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions python/plugins/processing/core/Processing.py
Expand Up @@ -124,14 +124,6 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
feedback.reportError(msg)
raise QgsProcessingException(msg)

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

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

Expand Down

0 comments on commit b3521a4

Please sign in to comment.