Skip to content

Commit 6406c52

Browse files
committed
fix
1 parent 3f090b6 commit 6406c52

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

roboflow/cli/handlers/image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def _handle_metadata(args): # noqa: ANN001
461461
add_tags_list = [t.strip() for t in args.add_tags.split(",") if t.strip()] if args.add_tags else None
462462
remove_tags_list = [t.strip() for t in args.remove_tags.split(",") if t.strip()] if args.remove_tags else None
463463

464-
if not metadata_dict and not remove_meta_list and not add_tags_list and not remove_tags_list:
464+
if metadata_dict is None and remove_meta_list is None and add_tags_list is None and remove_tags_list is None:
465465
output_error(
466466
args,
467467
"Nothing to update",
@@ -500,7 +500,7 @@ def _handle_metadata_batch(args, api_key, workspace_url, image_ids, metadata, re
500500
from roboflow.adapters import rfapi
501501
from roboflow.cli._output import output, output_error
502502

503-
BATCH_LIMIT = 1000
503+
BATCH_LIMIT = 1000 # matches the workspace images/metadata endpoint limit
504504
if len(image_ids) > BATCH_LIMIT:
505505
output_error(
506506
args,
@@ -554,7 +554,7 @@ def _handle_metadata_batch(args, api_key, workspace_url, image_ids, metadata, re
554554
output_error(args, str(exc), exit_code=1)
555555
return
556556
except TimeoutError as exc:
557-
output_error(args, str(exc))
557+
output_error(args, str(exc), exit_code=1)
558558
return
559559

560560
result_data = final.get("result", {})

0 commit comments

Comments
 (0)