Use telemetry.core.exceptions.Error everywhere.
BUG=chromium:460625
TEST=bots
Change-Id: I819b78ea402ee8bd8c669ec471c840106f35e548
Reviewed-on: https://chromium-review.googlesource.com/256740
Trybot-Ready: Achuith Bhandarkar <achuith@chromium.org>
Tested-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
Commit-Queue: Achuith Bhandarkar <achuith@chromium.org>
diff --git a/client/common_lib/cros/chrome.py b/client/common_lib/cros/chrome.py
index 86ee4ee..cfcb9db 100644
--- a/client/common_lib/cros/chrome.py
+++ b/client/common_lib/cros/chrome.py
@@ -6,7 +6,9 @@
from telemetry.core import browser_finder, browser_options, exceptions
from telemetry.core import extension_to_load, util
-from telemetry.core.backends.chrome_inspector import devtools_http
+
+
+Error = exceptions.Error
class Chrome(object):
@@ -164,8 +166,7 @@
"""
try:
func()
- except (exceptions.AppCrashException,
- devtools_http.DevToolsClientConnectionError):
+ except (Error):
return True
return False