Chromium Code Reviews| Index: chrome/test/mini_installer/test_installer.py |
| diff --git a/chrome/test/mini_installer/test_installer.py b/chrome/test/mini_installer/test_installer.py |
| index 723459b28a9d3e00dd1eaa4d6d91c62a03950127..f038757ac2fd3aa61f277cff605fb9379e6a570d 100644 |
| --- a/chrome/test/mini_installer/test_installer.py |
| +++ b/chrome/test/mini_installer/test_installer.py |
| @@ -17,6 +17,7 @@ import os |
| import subprocess |
| import sys |
| import time |
| +import traceback |
| import unittest |
| import _winreg |
| @@ -216,7 +217,12 @@ def RunCleanCommand(force_clean, variable_expander): |
| '--chrome-long-name="%s" ' |
| '--no-error-if-absent %s %s' % |
| (product_name, product_switch, interactive_option)) |
| - RunCommand(command, variable_expander) |
| + try: |
| + RunCommand(command, variable_expander) |
| + except: |
|
csharp
2016/05/24 14:56:04
Is it possible to be more specific about what you
|
| + message = traceback.format_exception(*sys.exc_info()) |
| + message.insert(0, 'Error cleaning up an old install with:\n') |
| + LogMessage(''.join(message)) |
| if force_clean: |
| DeleteGoogleUpdateRegistration(system_level, registry_subkey, |
| variable_expander) |