Skip to content

fix: remove extra argument in dry-run logger.info call#2257

Open
Br1an67 wants to merge 1 commit intomicrosoft:mainfrom
Br1an67:fix/issue-2254-logging-format
Open

fix: remove extra argument in dry-run logger.info call#2257
Br1an67 wants to merge 1 commit intomicrosoft:mainfrom
Br1an67:fix/issue-2254-logging-format

Conversation

@Br1an67
Copy link

@Br1an67 Br1an67 commented Mar 1, 2026

Description

Remove the extraneous True argument from logger.info("Dry run complete, exiting...", True) in _run_index() which caused a TypeError: not all arguments converted during string formatting when running graphrag index --dry-run.

Related Issues

Fixes #2254

Proposed Changes

  • Remove the extra True argument from logger.info() call at cli/index.py:119

Checklist

  • I have tested these changes locally.
  • I have reviewed the code changes.
  • I have updated the documentation (if necessary).
  • I have added appropriate unit tests (if applicable).

Additional Notes

One-line fix. The True was likely a leftover from a previous API where the second argument controlled some behavior. Standard logging.info() interprets positional args as format string arguments.

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 microsoft#2254
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