Skip to content


Browse files Browse the repository at this point in the history
Revert "fixes #21374: ignore optional output parameters"
This reverts commit af24215.
  • Loading branch information
Rashad Kanavath authored and nyalldawson committed Mar 20, 2019
1 parent 91d430a commit 46da10a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/plugins/processing/gui/
Expand Up @@ -165,11 +165,9 @@ def getParameterValues(self):
parameters[] = value
if param.isDestination():
context = dataobjects.createContext()
#TODO: could we ignore below check if parameter is optional?
ok, error = self.algorithm().provider().isSupportedOutputValue(value, param, context)
if not ok:
if not param.flags() & QgsProcessingParameterDefinition.FlagOptional:
raise AlgorithmDialogBase.InvalidOutputExtension(widget, error)
raise AlgorithmDialogBase.InvalidOutputExtension(widget, error)

return self.algorithm().preprocessParameters(parameters)

Expand Down

0 comments on commit 46da10a

Please sign in to comment.