From 8703d26d585dc5a3519d57922d54d04a46555392 Mon Sep 17 00:00:00 2001 From: venti <1308199824@qq.com> Date: Sat, 30 May 2026 16:49:18 +0800 Subject: [PATCH] fix: remove extraneous True argument from dry-run logger.info call logger.info('Dry run complete, exiting...', True) passed True as a format-string argument, but the message string has no %s placeholder. This caused TypeError: not all arguments converted during string formatting when running 'graphrag index --dry-run --verbose'. 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()