Skip to content

Commit 8775aff

Browse files
committed
Fix error in Geometry by Expression
We can't depend on preparing the expression, as we may not have enough context to do this during the algorithm preparation step
1 parent 59d55fc commit 8775aff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

python/plugins/processing/algs/qgis/GeometryByExpression.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ def prepareAlgorithm(self, parameters, context, feedback):
9494
return False
9595

9696
self.expression_context = self.createExpressionContext(parameters, context)
97-
98-
if not self.expression.prepare(self.expression_context):
99-
feedback.reportErro(
100-
self.tr('Evaluation error: {0}').format(self.expression.evalErrorString()))
101-
return False
97+
self.expression.prepare(self.expression_context)
10298

10399
return True
104100

0 commit comments

Comments
 (0)