[v4,4/27] framework/profile: Drop unneeded except

Submitted by Dylan Baker on Nov. 9, 2016, 8:53 p.m.

Details

Message ID df079cdc0b39175675b643db5833d31a3328f685.1478724535.git-series.dylan@pnwbakers.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Dylan Baker Nov. 9, 2016, 8:53 p.m.
A try/finally works better here anyway.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
---
 framework/profile.py | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

Patch hide | download patch | download mbox

diff --git a/framework/profile.py b/framework/profile.py
index 0d2e1cf..f63180a 100644
--- a/framework/profile.py
+++ b/framework/profile.py
@@ -346,14 +346,8 @@  class TestProfile(object):
                 # pool
                 run_threads(single, (x for x in six.iteritems(self.test_list)
                                      if not x[1].run_concurrent))
-
-            log.get().summary()
-        except (KeyboardInterrupt, Exception):
-            # In the event that C-c is pressed, or any sort of exception would
-            # generate a stacktrace, print the status line so that it's clear,
-            # then die. Pressing C-c again will kill immediately.
+        finally:
             log.get().summary()
-            raise
         self.teardown()
 
         if self._monitoring.abort_needed: