Skip to content
Permalink
Browse files

fixes #21374: ignore optional output parameters

  • Loading branch information
rkanavath authored and nyalldawson committed Mar 20, 2019
1 parent f1cc8aa commit f6ad4745bd3cbd6ad2b0863043c4d3c3005bdd84
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/gui/AlgorithmDialog.py
@@ -165,9 +165,11 @@ 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:
raise AlgorithmDialogBase.InvalidOutputExtension(widget, error)
if not param.flags() & QgsProcessingParameterDefinition.FlagOptional:
raise AlgorithmDialogBase.InvalidOutputExtension(widget, error)

return self.algorithm().preprocessParameters(parameters)

0 comments on commit f6ad474

Please sign in to comment.
You can’t perform that action at this time.