We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bb6e0e commit c9ecd2eCopy full SHA for c9ecd2e
packages/toolbox-core/src/toolbox_core/client.py
@@ -271,7 +271,7 @@ async def load_toolset(
271
# Request the definition of the toolset from the server
272
url = f"{self.__base_url}/api/toolset/{name or ''}"
273
async with self.__session.get(url, headers=resolved_headers) as response:
274
- if response.status != 200:
+ if not response.ok:
275
error_text = await response.text()
276
raise RuntimeError(
277
f"API request failed with status {response.status} ({response.reason}). Server response: {error_text}"
0 commit comments