From cd2860e16c391438134e01676eea3e777108daa7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 1 Oct 2014 14:58:07 -0600 Subject: [PATCH] All BaseExceptions should hit failure codepath Signed-off-by: Zack Cerza --- teuthology/run_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index 19af697527..eaf59f9261 100644 --- a/teuthology/run_tasks.py +++ b/teuthology/run_tasks.py @@ -52,7 +52,7 @@ def run_tasks(tasks, ctx): if hasattr(manager, '__enter__'): manager.__enter__() stack.append((taskname, manager)) - except Exception as e: + except BaseException as e: ctx.summary['success'] = False if 'failure_reason' not in ctx.summary: ctx.summary['failure_reason'] = str(e) -- 2.39.5