@@ -1486,12 +1486,12 @@ async def run_workers(
14861486 )
14871487 if small_annotations :
14881488 self ._small_annotations_queue = asyncio .Queue ()
1489- small_chunks = divide_to_chunks (
1490- small_annotations , size = self ._config .ANNOTATION_CHUNK_SIZE
1491- )
1492- for chunk in small_chunks :
1493- self ._small_annotations_queue .put_nowait (chunk )
1494- self ._small_annotations_queue .put_nowait (None )
1489+ small_chunks = divide_to_chunks (
1490+ small_annotations , size = self ._config .ANNOTATION_CHUNK_SIZE
1491+ )
1492+ for chunk in small_chunks :
1493+ self ._small_annotations_queue .put_nowait (chunk )
1494+ self ._small_annotations_queue .put_nowait (None )
14951495
14961496 annotations .extend (
14971497 list (
@@ -1520,11 +1520,13 @@ def execute(self):
15201520 self .reporter .log_warning (
15211521 f"Could not find annotations for { len_provided_items - len_items } /{ len_provided_items } items."
15221522 )
1523- else :
1523+ elif self . _item_names is None :
15241524 condition = Condition ("project_id" , self ._project .id , EQ ) & Condition (
15251525 "folder_id" , self ._folder .id , EQ
15261526 )
15271527 items = get_or_raise (self ._service_provider .items .list (condition ))
1528+ else :
1529+ items = []
15281530 id_item_map = {i .id : i for i in items }
15291531 if not items :
15301532 logger .info ("No annotations to download." )
0 commit comments