mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-23 20:21:03 +02:00
Fix deletion of last collection
This commit is contained in:
parent
96ae0e1c60
commit
142e13dc7a
1 changed files with 2 additions and 6 deletions
|
|
@ -35,12 +35,8 @@ class CollectionConfigHandler:
|
|||
"""
|
||||
logger.info(f"Processing collection configuration (version {version})")
|
||||
|
||||
# Extract collections from config
|
||||
if "collection" not in config:
|
||||
logger.debug("No collection configuration in config push")
|
||||
return
|
||||
|
||||
collection_config = config["collection"]
|
||||
# Extract collections from config (treat missing key as empty)
|
||||
collection_config = config.get("collection", {})
|
||||
|
||||
# Track which collections we've seen in this config
|
||||
current_collections: Set[tuple] = set()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue