From 9a764652bf18fda937d45d200bb12bf137806cde Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 13 May 2020 14:24:33 +0800 Subject: [PATCH] teuthology/run_tasks: do not call sys.exc_clear() for clearing exception sys.exc_clear() was removed in Python3, see https://docs.python.org/3/whatsnew/3.0.html#index-22. so we should not call it. Signed-off-by: Kefu Chai --- teuthology/run_tasks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index 615f7ba19c..f1f809d306 100644 --- a/teuthology/run_tasks.py +++ b/teuthology/run_tasks.py @@ -187,7 +187,6 @@ def run_tasks(tasks, ctx): interactive.task(ctx=ctx, config=None) else: if suppress: - sys.exc_clear() exc_info = (None, None, None) if exc_info != (None, None, None): -- 2.39.5