Skip to content

Commit b2166ce

Browse files
committed
support none case in check_bundles
1 parent 81d6d8f commit b2166ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

planet/cli/orders.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def check_bundle(ctx, param, bundle) -> Optional[List[dict]]:
5858
if not item_type:
5959
raise click.BadParameter("Item type is required to validate a bundle.")
6060

61+
if bundle is None:
62+
return bundle
63+
6164
bundles = bundle.split(",")
6265
for b in bundles:
6366
try:

0 commit comments

Comments
 (0)