From: Kefu Chai Date: Wed, 13 May 2020 06:24:33 +0000 (+0800) Subject: teuthology/run_tasks: do not call sys.exc_clear() for clearing exception X-Git-Tag: 1.1.0~106^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a764652bf18fda937d45d200bb12bf137806cde;p=teuthology.git 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 --- diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index 615f7ba19..f1f809d30 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):