Chromium Code Reviews| Index: recipe_modules/bot_update/resources/bot_update.py |
| diff --git a/recipe_modules/bot_update/resources/bot_update.py b/recipe_modules/bot_update/resources/bot_update.py |
| index 3211369667372e4ec45a6b52343120b69985a912..5300774934e4a2d722df208d7be90e9548d47818 100755 |
| --- a/recipe_modules/bot_update/resources/bot_update.py |
| +++ b/recipe_modules/bot_update/resources/bot_update.py |
| @@ -299,7 +299,10 @@ def remove(target): |
| os.makedirs(dead_folder) |
| dest = path.join(dead_folder, uuid.uuid4().hex) |
| print 'Marking for removal %s => %s' % (target, dest) |
| - os.rename(target, dest) |
| + try: |
| + os.rename(target, dest) |
| + except Exception as e: |
| + print 'Error renaming %s to %s: %s' % (target, dest, str(e)) |
|
ddoman1
2016/10/25 21:33:08
This would eat the exception and the execution flo
agable
2016/10/28 16:48:40
You're absolutely right that we should be using th
katthomas
2016/10/28 18:41:13
My bad on the raise. Done now.
|
| def ensure_no_checkout(dir_names): |