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

Unified Diff: telemetry/telemetry/internal/browser/browser.py

Issue 3015633002: [Telemetry] Include debugging info when foreground tab is missing (Closed)
Patch Set: Created 3 years, 3 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 | « telemetry/telemetry/core/exceptions.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/browser/browser.py
diff --git a/telemetry/telemetry/internal/browser/browser.py b/telemetry/telemetry/internal/browser/browser.py
index ff6a689ce500cea5b36888b2c337d9af0c9d555a..4b4a244a98a325a8e4591612e458688dfe9d2379 100644
--- a/telemetry/telemetry/internal/browser/browser.py
+++ b/telemetry/telemetry/internal/browser/browser.py
@@ -103,7 +103,7 @@ class Browser(app.App):
# tab is always tab 0, which will be the first one that isn't hidden
if self._tabs[i].EvaluateJavaScript('!document.hidden'):
return self._tabs[i]
- raise Exception("No foreground tab found")
+ raise exceptions.TabMissingError("No foreground tab found")
@property
@decorators.Cache
« no previous file with comments | « telemetry/telemetry/core/exceptions.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698