Skip to content

Commit

Permalink
fix: get_items without ids
Browse files Browse the repository at this point in the history
Passing empty list to `search` has different semantics than `None`.
  • Loading branch information
gadomski committed Aug 21, 2023
1 parent 93742ad commit a1742ef
Show file tree
Hide file tree
Showing 3 changed files with 533 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pystac_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def get_items(self, *ids: str, recursive: bool = False) -> Iterator["Item_Type"]
catalog.
"""
if self.conforms_to(ConformanceClasses.ITEM_SEARCH):
search = self.search(ids=ids)
search = self.search(ids=ids or None)
yield from search.items()
else:
self._warn_about_fallback("ITEM_SEARCH")
Expand Down
Loading

0 comments on commit a1742ef

Please sign in to comment.