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

Unified Diff: tools/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py

Issue 169053006: Also handle IndexError exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py
diff --git a/tools/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py b/tools/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py
index ca802fb10ffbe9a398e62bf8383ee0e056b98aa4..0923888873c5828c98b2c9f828e4ca87ffcc49db 100644
--- a/tools/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py
+++ b/tools/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py
@@ -445,7 +445,8 @@ class CrOSBrowserBackend(chrome_browser_backend.ChromeBrowserBackend):
# Open a new window/tab.
tab = self.tab_list_backend.New(timeout=30)
tab.Navigate('about:blank', timeout=10)
- except (exceptions.TabCrashException, util.TimeoutException):
+ except (exceptions.TabCrashException, util.TimeoutException,
+ IndexError):
retries -= 1
logging.warn('TabCrashException/TimeoutException in '
'new tab creation/navigation, '
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698