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

Unified Diff: tools/perf/profile_creators/fast_navigation_profile_extender.py

Issue 959423003: Telemetry: Add more details to inspector_backend exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@telemetry_make_new_exceptions4
Patch Set: Rebase against top of tree. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/perf/profile_creators/fast_navigation_profile_extender.py
diff --git a/tools/perf/profile_creators/fast_navigation_profile_extender.py b/tools/perf/profile_creators/fast_navigation_profile_extender.py
index e4904038b9fcd63e22d1aa8c14d8bff752849954..abcc8ebbc945150d606b24699a472f14acd6c800 100644
--- a/tools/perf/profile_creators/fast_navigation_profile_extender.py
+++ b/tools/perf/profile_creators/fast_navigation_profile_extender.py
@@ -161,7 +161,7 @@ class FastNavigationProfileExtender(object):
"""Retrives the URL of the tab."""
try:
return tab.EvaluateJavaScript('document.URL', timeout)
- except (exceptions.DevtoolsTargetCrashException,
+ except (exceptions.Error,
devtools_http.DevToolsClientConnectionError,
devtools_http.DevToolsClientUrlError):
return None
@@ -204,7 +204,7 @@ class FastNavigationProfileExtender(object):
try:
tab.Navigate(url, None, timeout_in_seconds)
- except (exceptions.DevtoolsTargetCrashException,
+ except (exceptions.Error,
devtools_http.DevToolsClientConnectionError,
devtools_http.DevToolsClientUrlError):
# We expect a time out. It's possible for other problems to arise, but
@@ -242,7 +242,7 @@ class FastNavigationProfileExtender(object):
except exceptions.TimeoutException:
# Ignore time outs.
pass
- except (exceptions.DevtoolsTargetCrashException,
+ except (exceptions.Error,
devtools_http.DevToolsClientConnectionError,
devtools_http.DevToolsClientUrlError):
# If any error occurs, remove the tab. it's probably in an

Powered by Google App Engine
This is Rietveld 408576698