Skip to content

Commit 2580553

Browse files
committed
Set assets to empty list when no entities are returned by search
1 parent 8a17558 commit 2580553

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyatlan/client/atlan.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def _get_next_page(self):
156156
request_obj=self._criteria,
157157
)
158158
if "entities" not in raw_json:
159+
self._assets = []
159160
return False
160161
self._assets = parse_obj_as(list[Asset], raw_json["entities"])
161162
return True

0 commit comments

Comments
 (0)