]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology/run_tasks: do not call sys.exc_clear() for clearing exception 1474/head
authorKefu Chai <kchai@redhat.com>
Wed, 13 May 2020 06:24:33 +0000 (14:24 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 13 May 2020 06:24:34 +0000 (14:24 +0800)
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 <kchai@redhat.com>
teuthology/run_tasks.py

index 615f7ba19ce03fdb26259e93c96756b01356462d..f1f809d3067c602ad08407e3034964d3fbd3ac51 100644 (file)
@@ -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):