Skip to content

Commit 9df62b9

Browse files
committed
Raise error in case if invalid parameter in batch mode
1 parent 9c8475e commit 9df62b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/plugins/processing/gui/BatchPanel.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,11 @@ def parametersForRow(self, row, destinationProject=None, warnOnInvalid=True):
777777
widget = self.tblParameters.cellWidget(row + 1, col)
778778
text = widget.getValue()
779779
if not warnOnInvalid or out.checkValueIsAcceptable(text):
780+
ok, error = out.isSupportedOutputValue(text, createContext())
781+
if not ok:
782+
self.parent.messageBar().pushMessage("", error, level=Qgis.Warning, duration=5)
783+
return {}, False
784+
780785
if isinstance(out, (QgsProcessingParameterRasterDestination,
781786
QgsProcessingParameterVectorDestination,
782787
QgsProcessingParameterFeatureSink)):

0 commit comments

Comments
 (0)