This commit is contained in:
thot-experiment 2025-05-07 18:54:39 -07:00
parent ffc6b610b6
commit 33da9e40c7
2 changed files with 30 additions and 31 deletions

View File

@ -95,7 +95,7 @@ import logging
import time import time
import io import io
import socket import socket
from typing import Dict, Type, Optional, Any, TypeVar, Generic, Callable, Tuple, List, Union from typing import Dict, Type, Optional, Any, TypeVar, Generic, Callable, Tuple
from enum import Enum from enum import Enum
import json import json
import requests import requests
@ -431,8 +431,8 @@ class ApiClient:
if connectivity["is_local_issue"]: if connectivity["is_local_issue"]:
raise LocalNetworkError( raise LocalNetworkError(
f"Unable to connect to the API server due to local network issues. " "Unable to connect to the API server due to local network issues. "
f"Please check your internet connection and try again." "Please check your internet connection and try again."
) from e ) from e
elif connectivity["is_api_issue"]: elif connectivity["is_api_issue"]:
raise ApiServerError( raise ApiServerError(

View File

@ -123,4 +123,3 @@ if __name__ == '__main__':
response_status_code=200, response_status_code=200,
response_content=b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR...' # Sample binary data response_content=b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR...' # Sample binary data
) )
print(f"Test logs should be in: {get_log_directory()}")