Skip to content

Commit f35b6df

Browse files
committed
Don't throw 404 exception
1 parent 6b309bd commit f35b6df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aidbox_python_sdk/db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ async def alchemy(self, statement, *, execute=False):
136136
return await self.raw_sql(query, execute=execute)
137137

138138
async def _get_all_entities_name(self):
139-
# TODO: refactor using sdk.client and fetch_all
139+
# TODO: refactor using StructureDefintion
140140
query_url = f"{self._settings.APP_INIT_URL}/Entity?type=resource&_elements=id&_count=999"
141-
async with self._client.get(query_url, raise_for_status=True) as resp:
141+
async with self._client.get(query_url) as resp:
142142
json_resp = await resp.json()
143143
return [entry["resource"]["id"] for entry in json_resp.get("entry", [])]
144144

0 commit comments

Comments
 (0)