Skip to content

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

Closed
Br1an (Br1an67) wants to merge 1 commit into
microsoft:mainfrom
Br1an67:fix/issue-2254-logging-format
Closed

Br1an (Br1an67) wants to merge 1 commit into
microsoft:mainfrom
Br1an67:fix/issue-2254-logging-format

Conversation

@Br1an67

Copy link
Copy Markdown
Contributor

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
@Br1an67

Copy link
Copy Markdown
Contributor Author

Hi — just a gentle bump on this. Happy to make any changes if needed!

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.

2 participants