Skip to content
Permalink
Browse files

[processing] Fix exception when parameters are missing in batch dialog

Refs #18236
  • Loading branch information
nyalldawson committed Feb 27, 2018
1 parent 4b22175 commit 6e44a27764049c84fc512eac47688a7d6c6c3e81
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/gui/BatchPanel.py
@@ -193,7 +193,7 @@ def save(self):
continue
wrapper = self.wrappers[row][col]
if not param.checkValueIsAcceptable(wrapper.value(), context):
self.parent.bar.pushMessage("", self.tr('Wrong or missing parameter value: {0} (row {1})').format(
self.parent.messageBar().pushMessage("", self.tr('Wrong or missing parameter value: {0} (row {1})').format(
param.description(), row + 1),
level=Qgis.Warning, duration=5)
return
@@ -208,7 +208,7 @@ def save(self):
algOutputs[out.name()] = text.strip()
col += 1
else:
self.parent.bar.pushMessage("", self.tr('Wrong or missing output value: {0} (row {1})').format(
self.parent.messageBar().pushMessage("", self.tr('Wrong or missing output value: {0} (row {1})').format(
out.description(), row + 1),
level=Qgis.Warning, duration=5)
return

0 comments on commit 6e44a27

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