Drop Python 3.13 from tests and reformat code

This commit is contained in:
yangdx
2025-12-19 18:15:12 +08:00
parent 27863a6019
commit 73c3c4135c
2 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
python-version: ['3.12', '3.13', '3.14']
python-version: ['3.12', '3.14']
steps:
- uses: actions/checkout@v6

View File

@@ -2359,7 +2359,9 @@ class PGVectorStorage(BaseVectorStorage):
workspace_count = (
workspace_count_result.get("count", 0) if workspace_count_result else 0
)
if workspace_count == 0 and not (table_name.lower() == legacy_table_name.lower()):
if workspace_count == 0 and not (
table_name.lower() == legacy_table_name.lower()
):
logger.warning(
f"PostgreSQL: workspace data in table '{table_name}' is empty. "
f"Ensure it is caused by new workspace setup and not an unexpected embedding model change."