Improve docs
This commit is contained in:
parent
446f1c021a
commit
1dcf5bb3af
6 changed files with 117 additions and 4 deletions
|
|
@ -50,7 +50,9 @@ async def call_remote_great_ai_async(
|
|||
try:
|
||||
response.raise_for_status()
|
||||
except Exception:
|
||||
raise RemoteCallError("Unexpected status code")
|
||||
raise RemoteCallError(
|
||||
f"Unexpected status code, reason: {response.text}"
|
||||
)
|
||||
except Exception as e:
|
||||
raise RemoteCallError from e
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue