feat: add web-based terminal and minigit tool
feat: increase http client timeout to 600 seconds refactor: improve error handling and data access in api and research tools
This commit is contained in:
+3
-3
@@ -50,9 +50,9 @@ def call_api(
|
||||
)
|
||||
if response.get("error"):
|
||||
if "status" in response:
|
||||
status = response['status']
|
||||
text = response.get('text', '')
|
||||
exception_msg = response.get('exception', '')
|
||||
status = response["status"]
|
||||
text = response.get("text", "")
|
||||
exception_msg = response.get("exception", "")
|
||||
|
||||
if status == 0:
|
||||
error_msg = f"Network/Connection Error: {exception_msg or 'Unable to connect to API server'}"
|
||||
|
||||
Reference in New Issue
Block a user