We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c01cf07 commit eac510dCopy full SHA for eac510d
1 file changed
src/vectorcode/subcommands/update.py
@@ -30,12 +30,19 @@ async def update(configs: Config) -> int:
30
file=sys.stderr,
31
)
32
return 1
33
- if collection is None or not verify_ef(collection, configs):
+ if collection is None: # pragma: nocover
34
+ logger.error(
35
+ f"Failed to find a collection at {configs.project_root} from {configs.db_url}"
36
+ )
37
+ return 1
38
+ if not verify_ef(collection, configs): # pragma: nocover
39
40
41
metas = (await collection.get(include=[IncludeEnum.metadatas]))["metadatas"]
- if metas is None:
42
+ if metas is None or len(metas) == 0: # pragma: nocover
43
+ logger.debug("Empty collection.")
44
return 0
45
+
46
files_gen = (str(meta.get("path", "")) for meta in metas)
47
files = set()
48
orphanes = set()
0 commit comments