diff --git a/scripts/ci/index_ref_doc.py b/scripts/ci/index_ref_doc.py
index <HASH>..<HASH> 100644
--- a/scripts/ci/index_ref_doc.py
+++ b/scripts/ci/index_ref_doc.py
@@ -61,7 +61,7 @@ class TestIndexRefDocsMeta(type):
                 try:
                     check_call(script_args)
                 except CalledProcessError as e:
-                    traceback.print_exc(e)
+                    traceback.print_exc()
                     raise e
             return test
fix trackback print exc bug (#<I>)