Skip to content

Commit a1742ef

Browse files
committed
fix: get_items without ids
Passing empty list to `search` has different semantics than `None`.
1 parent 93742ad commit a1742ef

File tree

3 files changed

+533
-1
lines changed

3 files changed

+533
-1
lines changed

pystac_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def get_items(self, *ids: str, recursive: bool = False) -> Iterator["Item_Type"]
451451
catalog.
452452
"""
453453
if self.conforms_to(ConformanceClasses.ITEM_SEARCH):
454-
search = self.search(ids=ids)
454+
search = self.search(ids=ids or None)
455455
yield from search.items()
456456
else:
457457
self._warn_about_fallback("ITEM_SEARCH")

0 commit comments

Comments
 (0)