Skip to content

fix: call strip() with parentheses to properly check whitespace-only vector store URIs (fixes #2381)#2383

Open
hanhan761 wants to merge 2 commits into
microsoft:mainfrom
hanhan761:fix-2381-db-uri-strip
Open

fix: call strip() with parentheses to properly check whitespace-only vector store URIs (fixes #2381)#2383
hanhan761 wants to merge 2 commits into
microsoft:mainfrom
hanhan761:fix-2381-db-uri-strip

Conversation

@hanhan761
Copy link
Copy Markdown

Summary

Fixes a bug where store.db_uri.strip == "" always evaluates to False because .strip is used without parentheses, returning a bound method reference instead of the trimmed string. This prevents the default vector store URI from being applied when the configured URI is whitespace-only.

Changes

  • graph_rag_config.py: Changed store.db_uri.strip == "" to store.db_uri.strip() == ""

Issue

Fixes #2381

Verification

  • Code inspection confirms the fix

ot store.db_uri still handles None/empty string on the short-circuit before .strip() is called

@hanhan761 hanhan761 requested a review from a team as a code owner May 30, 2026 08:57
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: vector store db_uri whitespace check uses .strip without parentheses, always False

1 participant