From bb29ee8ecb60ccb4ff24f93f2ace86ce63e3277a Mon Sep 17 00:00:00 2001 From: Br1an67 <932039080@qq.com> Date: Mon, 2 Mar 2026 00:54:22 +0800 Subject: [PATCH] fix: remove extra argument in dry-run logger.info call Remove the extraneous True argument from logger.info() in _run_index() which caused a TypeError during string formatting when running graphrag index --dry-run. Fixes #2254 --- packages/graphrag/graphrag/cli/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/graphrag/graphrag/cli/index.py b/packages/graphrag/graphrag/cli/index.py index 94a40cde48..68022eb9e5 100644 --- a/packages/graphrag/graphrag/cli/index.py +++ b/packages/graphrag/graphrag/cli/index.py @@ -116,7 +116,7 @@ def _run_index( ) if dry_run: - logger.info("Dry run complete, exiting...", True) + logger.info("Dry run complete, exiting...") sys.exit(0) _register_signal_handlers()