Skip to content

Commit 2c3a2b5

Browse files
authored
Fix: Only report successful plan application when there's no exception (#2759)
1 parent e0982fa commit 2c3a2b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlmesh/core/plan/evaluator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ def evaluate(
129129
except Exception as e:
130130
analytics.collector.on_plan_apply_end(plan_id=plan.plan_id, error=e)
131131
raise
132-
finally:
132+
else:
133133
analytics.collector.on_plan_apply_end(plan_id=plan.plan_id)
134+
finally:
134135
self.console.stop_plan_evaluation()
135136

136137
def _backfill(

0 commit comments

Comments
 (0)