Skip to content


Raise exception if prepare fails
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Sep 14, 2018
1 parent 0626a0f commit 699a9a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/gui/
Original file line number Diff line number Diff line change
Expand Up @@ -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."))
Expand Down

0 comments on commit 699a9a3

Please sign in to comment.