diff --git a/addon_imps/storage/dataverse.py b/addon_imps/storage/dataverse.py index 159c0c0d..aa11f25d 100644 --- a/addon_imps/storage/dataverse.py +++ b/addon_imps/storage/dataverse.py @@ -62,7 +62,9 @@ async def list_root_items(self, page_cursor: str = "") -> storage.ItemSampleResu ], ) as response: content = await response.json_content() - return parse_mydata(content["data"]) + if resp_data := content.get("data"): + return parse_mydata(resp_data) + return ItemSampleResult(items=[], total_count=0) async def get_item_info(self, item_id: str) -> storage.ItemResult: if not item_id: