File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/vectorcode/subcommands Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,19 @@ async def update(configs: Config) -> int:
30
30
file = sys .stderr ,
31
31
)
32
32
return 1
33
- if collection is None or not verify_ef (collection , configs ):
33
+ 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
34
39
return 1
35
40
36
41
metas = (await collection .get (include = [IncludeEnum .metadatas ]))["metadatas" ]
37
- if metas is None :
42
+ if metas is None or len (metas ) == 0 : # pragma: nocover
43
+ logger .debug ("Empty collection." )
38
44
return 0
45
+
39
46
files_gen = (str (meta .get ("path" , "" )) for meta in metas )
40
47
files = set ()
41
48
orphanes = set ()
You can’t perform that action at this time.
0 commit comments