Skip to content
Browse files
Raise exception if prepare fails
  • Loading branch information
elpaso authored and nyalldawson committed Sep 14, 2018
1 parent 0626a0f commit 699a9a3bfbc45f7b9d3c44530af840161e3000e2
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/gui/
@@ -219,7 +219,8 @@ def execute_in_place_run(alg, active_layer, parameters, context=None, feedback=N
# Make a clone or it will crash the second time the dialog
# is opened and run
alg = alg.create()
alg.prepare(parameters, context, feedback)
if not alg.prepare(parameters, context, feedback):
raise QgsProcessingException(tr("Could not prepare selected algorithm."))
# Check again for compatibility after prepare
if not alg.supportInPlaceEdit(active_layer):
raise QgsProcessingException(tr("Selected algorithm and parameter configuration are not compatible with in-place modifications."))

0 comments on commit 699a9a3

Please sign in to comment.