Skip to content

fix: remove extraneous True argument from dry-run logger.info call#2385

Open
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix/dry-run-logger-arg-2254
Open

fix: remove extraneous True argument from dry-run logger.info call#2385
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix/dry-run-logger-arg-2254

Conversation

@hanhan761
Copy link
Copy Markdown

Description

When running graphrag index --dry-run --verbose, the logger.info() call on line 119 of graphrag/cli/index.py passes an extraneous positional argument True:

logger.info("Dry run complete, exiting...", True)

The message string has no %s placeholder, so Python's logging module raises:
TypeError: not all arguments converted during string formatting

This was the actual error reported in the issue, masked behind the logging error handler.

Fix

Removed the stray True argument so the call is:

logger.info("Dry run complete, exiting...")

Related Issues

Fixes #2254

Verification

  • pytest tests/unit/config/ -v — 10/10 passed
  • pytest tests/unit/chunking/ -v — 11/11 passed

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 microsoft#2254
@hanhan761 hanhan761 requested a review from a team as a code owner May 30, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: An error occurred when embedding vectors using nomic-embed-text deployed locally by ollama.

1 participant