Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Issue 2175103002: Fix bot_update to correctly handle exceptions (Closed)

Created:
4 years, 5 months ago by martiniss
Modified:
4 years, 5 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix bot_update to correctly handle exceptions If an exception occurs during a try block which prevents a step from actually executing, then the finally block's attempt to access step.active_result will fail, and the original exception will be hidden behind a new exception from the recipe engine. This CL changes this behavior so that the original exception will always fire. Committed: https://chromium.googlesource.com/chromium/tools/depot_tools/+/8697dfcf8b85fbad2cc8eee370063b5b4113eaeb

Patch Set 1 #

Patch Set 2 : Fix logic to correctly raise exception #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -50 lines) Patch
M recipe_modules/bot_update/api.py View 1 1 chunk +56 lines, -50 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
martiniss
PTAL
4 years, 5 months ago (2016-07-23 04:06:47 UTC) #3
nodir
lgtm
4 years, 5 months ago (2016-07-23 04:10:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2175103002/20001
4 years, 5 months ago (2016-07-23 04:22:30 UTC) #8
commit-bot: I haz the power
4 years, 5 months ago (2016-07-23 04:25:01 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/tools/depot_tools/+/8697dfcf8b85fb...

Powered by Google App Engine
This is Rietveld 408576698