Index: tools/telemetry/telemetry/user_story/user_story_runner.py |
diff --git a/tools/telemetry/telemetry/user_story/user_story_runner.py b/tools/telemetry/telemetry/user_story/user_story_runner.py |
index 52f569d142a0f439b9472b33d766c187f75d97dc..98df04035ad57ee393684c279b19903e21eac363 100644 |
--- a/tools/telemetry/telemetry/user_story/user_story_runner.py |
+++ b/tools/telemetry/telemetry/user_story/user_story_runner.py |
@@ -111,10 +111,6 @@ def _RunUserStoryAndProcessErrorIfNeeded( |
except page_action.PageActionNotSupported as e: |
results.AddValue( |
skip.SkipValue(user_story, 'Unsupported page action: %s' % e)) |
- except Exception: |
- exception_formatter.PrintFormattedException( |
- msg='Unhandled exception while running %s' % user_story.display_name) |
- results.AddValue(failure.FailureValue(user_story, sys.exc_info())) |
else: |
if expectation == 'fail': |
logging.warning( |
@@ -245,6 +241,9 @@ def Run(test, user_story_set, expectations, finder_options, results): |
except Exception: |
# Tear down & restart the state for unhandled exceptions thrown by |
# _RunUserStoryAndProcessErrorIfNeeded. |
+ exception_formatter.PrintFormattedException( |
+ msg='Unhandled exception while running %s' % |
+ user_story.display_name) |
slamm
2014/12/01 23:23:00
This causes the exception to get printed twice.
O
nednguyen
2014/12/01 23:27:36
Sure, feel free to remove this.
|
results.AddValue(failure.FailureValue(user_story, sys.exc_info())) |
state.TearDownState(results) |
state = group.shared_user_story_state_class( |