Skip to content

Commit 53c9687

Browse files
jfrancoaclaude
andcommitted
fix: use truthiness check for asyncConfig parsing
Revert to truthiness check when parsing asyncConfig from server response. An empty dict {} means no custom config and should be treated as absent (None), not as an _AsyncReplicationConfig with all None fields. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7050230 commit 53c9687

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

weaviate/collections/classes/config_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def _collection_config_from_json(schema: Dict[str, Any]) -> _CollectionConfig:
398398
propagation_concurrency=async_cfg.get("propagationConcurrency"),
399399
propagation_batch_size=async_cfg.get("propagationBatchSize"),
400400
)
401-
if (async_cfg := schema["replicationConfig"].get("asyncConfig")) is not None
401+
if (async_cfg := schema["replicationConfig"].get("asyncConfig"))
402402
else None
403403
),
404404
),

0 commit comments

Comments
 (0)