Skip to content

Commit

Permalink
[processing] Fix traceback when modeller parameter invalid value is d…
Browse files Browse the repository at this point in the history
…etected

(cherry picked from commit 64bd9e5)
  • Loading branch information
nyalldawson committed Nov 27, 2018
1 parent bb8854f commit 5e4d156
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/modeler/ModelerParametersDialog.py
Expand Up @@ -351,7 +351,9 @@ def createAlgorithm(self):
continue
try:
wrapper = self.wrappers[param.name()]
if issubclass(wrapper.__class__, QgsProcessingModelerParameterWidget):
if issubclass(wrapper.__class__, WidgetWrapper):
val = wrapper.value()
elif issubclass(wrapper.__class__, QgsProcessingModelerParameterWidget):
val = wrapper.value()
else:
val = wrapper.parameterValue()
Expand Down

0 comments on commit 5e4d156

Please sign in to comment.