Skip to content
Browse files
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 46da10a1e8df7e936c6f614626660abccac8a91c
Showing with 1 addition and 3 deletions.
  1. +1 −3 python/plugins/processing/gui/
@@ -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)

0 comments on commit 46da10a

Please sign in to comment.