Skip to content
Permalink
Browse files

Revert "fixes #21374: ignore optional output parameters"

This reverts commit af24215.
  • Loading branch information
rkanavath authored and nyalldawson committed Mar 19, 2019
1 parent 91d430a commit 46da10a1e8df7e936c6f614626660abccac8a91c
Showing with 1 addition and 3 deletions.
  1. +1 −3 python/plugins/processing/gui/AlgorithmDialog.py
@@ -165,11 +165,9 @@ def getParameterValues(self):
parameters[param.name()] = 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.
You can’t perform that action at this time.