Index: tools/telemetry/telemetry/page/page_test.py |
diff --git a/tools/telemetry/telemetry/page/page_test.py b/tools/telemetry/telemetry/page/page_test.py |
index 5dace8e54e990d3ceace1f36f61f4fd804a7b092..e757b257ab922afb3e74076e6721766d3d8d7335 100644 |
--- a/tools/telemetry/telemetry/page/page_test.py |
+++ b/tools/telemetry/telemetry/page/page_test.py |
@@ -99,8 +99,10 @@ class PageTest(object): |
if action: |
action.WillRunAction(page, tab) |
self.WillRunAction(page, tab, action) |
- action.RunAction(page, tab, None) |
- self.DidRunAction(page, tab, action) |
+ try: |
+ action.RunAction(page, tab, None) |
+ finally: |
+ self.DidRunAction(page, tab, action) |
try: |
self._test_method(page, tab, results) |
finally: |