mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[processing] Remove extraneous parameter value check
The subsequent call to checkParameterValues covers the same checks, but in a more flexible way. Refs discussion at https://github.com/qgis/QGIS-Documentation/pull/2797
This commit is contained in:
parent
b57afa47ed
commit
85d740026a
@ -126,14 +126,6 @@ class Processing(object):
|
||||
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user